gpt4 book ai didi

node.js - "npm install"在 node_modules 文件夹中安装任何内容,但在 centos 7 中安装一个 .staging 文件夹

转载 作者:太空宇宙 更新时间:2023-11-03 22:43:57 24 4
gpt4 key购买 nike

我有这个package.json

{
"name": "jangkoo",
"version": "0.0.0",
"private": true,
"dependencies": {
"keystone": "^0.3.19",
"async": "^1.5.0",
"lodash": "^4.13.1",
"node-sass": "^3.3.2",
"node-sass-middleware": "^0.9.7",
"dotenv": "^2.0.0"
},
"devDependencies": {
"eslint": "^2.12.0",
"eslint-config-keystone": "^2.3.1",
"eslint-plugin-react": "^5.1.1",
"gulp": "^3.7.0",
"gulp-shell": "^0.5.0",
"gulp-watch": "^4.3.5",
"gulp-sass": "^2.0.4"

},
"scripts": {
"lint": "eslint .",
"start": "node keystone.js"
}
}

当我运行 npm install 时,它创建了一个包含 .staging 文件夹的 node_modules 。没有安装其他模块。这里有什么问题?操作系统是Centos 7。

最佳答案

npm install 在安装过程中临时将所有 node_modules 添加到 .staging 文件夹中。如果安装过程中出现问题,例如内存不足,您可能会陷入这个包含 .staging 文件夹的奇怪 node_modules 安装。

https://github.com/npm/npm/issues/12540

关于node.js - "npm install"在 node_modules 文件夹中安装任何内容,但在 centos 7 中安装一个 .staging 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39136232/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com