我在我的基本文件夹中运行npm install
并获取以下内容:
如何阻止这种情况发生?
- 更新 -
我的package.json如下:
{
"name": "my-project",
"version": "1.0.1",
"description": "",
"dependecies": {
"bower": "^1.8.0",
"del": "^3.0.0",
"es6-promise": "^4.2.2",
"gulp": "^3.9.1",
"gulp-concat": "^2.6.1",
"gulp-declare": "^0.3.0",
"gulp-filter": "^5.1.0",
"gulp-handlebars": "^4.0.0",
"gulp-insert": "^0.5.0",
"gulp-less": "^3.4.0",
"gulp-plumber": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-shell": "^0.6.5",
"gulp-util": "^3.0.8",
"gulp-watch": "^4.3.11",
"gulp-wrap": "^0.13.0",
"handlebars": "^4.0.10",
"jasmine": "^2.7.0",
"jasmine-core": "^2.7.0",
"karma": "^1.7.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^1.0.1",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.4",
"karma-requirejs": "^1.1.0",
"requirejs": "^2.3.5"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-plugin-transform-es2015-modules-amd": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"eslint": "^4.14.0",
"gulp-babel": "^7.0.0",
"gulp-cached": "^1.1.1",
"gulp-clean-css": "^3.9.2",
"gulp-eslint": "^4.0.0",
"gulp-sourcemaps": "^2.6.3",
"karma-babel-preprocessor": "^6.0.1",
"karma-trx-reporter": "^0.2.9",
"merge-stream": "^1.0.1"
},
"author": ""
}
我删除了我的节点和git,然后重新安装了它们。 我的节点版本是8.9.4 我的npm版本是5.6.0 我的git版本是2.15.1.windows.2 我在Windows 10上
我的主要困惑是为什么这有效并停止了。此外,它在具有相同设置的同事机器上也可以正常工作。