使用最新版本更新npm时出现错误并产生冲突
c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External> npm缓存清理--force npm使用--force警告我肯定希望您知道自己在做什么。
c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External> npm install npm @ latest -g
npm http GET https://registry.npmjs.org/npm
npm http 200 https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm/-/npm-6.5.0.tgz
npm http 200 https://registry.npmjs.org/npm/-/npm-6.5.0.tgz
npm WARN package.json path-is-inside@1.0.2没有自述文件
npm WARN package.json sorted-object@2.0.1没有自述数据
npm WARN package.json punycode@1.4.1 punycode也是节点核心模块的名称。
npm WARN package.json string_decoder@1.1.1 string_decoder也是节点核心模块的名称。
c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ node \ npx-> c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web工具\ External \ node \ node_modules \ npm \ bin \ npx-cli.js
c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ node \ npm-> c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web工具\ External \ node \ node_modules \ npm \ bin \ npm-cli.js
npm@6.5.0 c:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ node \ node_modules \ npm
请帮助我更新此mnp版本。由于这个原因,我无法恢复package.json 得到 错误
npm错误!错误:方法不允许
npm错误!错误响应(C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ npm \ node_modules \ npm \ lib \ cache.js:753:14) npm ERR!在C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ npm \ node_modules \ npm \ lib \ cache.js:773:12
npm错误!保存时(C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ npm \ node_modules \ npm-registry-client \ lib \ get.js:148:7)
npm错误!在C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ npm \ node_modules \ graceful-fs \ polyfills.js:133:7
npm错误!在Object.oncomplete(fs.js:107:15)
npm错误!如果您需要帮助,可以报告整个日志,
npm错误!包括npm和节点版本,位于:
npm错误! http://github.com/npm/npm/issues
npm错误!系统Windows_NT 6.2.9200
npm错误!命令“ C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web Tools \ External \ node \ node”“ C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ Extensions \ Microsoft \ Web工具\外部\ npm \ node_modules \ npm \ bin \ npm-cli.js“”安装“
npm错误! CWD C:\ Users \ VIKAS \ documents \ Visual Studio
2015 \ Projects \ Angular2 \ Angular2
npm错误!节点-v v0.10.31
npm错误! npm -v 1.4.9
npm错误!代码E405
答案 0 :(得分:2)