1

我一直无法升级我的npm安装。

我尝试安装新版本npm

1.步骤

npm install npm -g

npm install npm --save-dev

2.步骤

npm outdated 

Package  Current  Wanted  Latest
npm        3.5.3   3.5.4   3.5.3

包.json

{
  "name": "tiko",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
  }
}

npm update

npm WARN EBUNDLEOVERRIDE Replacing bundled node_modules\npm\node_modules\init-pa
ckage-json with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled node_modules\npm\node_modules\npm-ins
tall-checks with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled node_modules\npm\node_modules\node-gy
p with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled node_modules\npm\node_modules\npmlog
with new installed version
npm WARN EBUNDLEOVERRIDE Replacing bundled node_modules\npm\node_modules\read-pa
ckage-json with new installed version

npm outdated 

Package  Current  Wanted  Latest  Location
npm        3.5.4   3.5.4   3.5.3  tiko

更新npm不起作用吗?

4

1 回答 1

2

您可以使用自身更新您的npm安装。npm

您需要安装最新版本的npm全局包:

$ npm install npm -g
于 2016-01-16T05:56:10.973 回答