I've been unable to upgrade my npm
installation.
I tried installing a new version of npm
:
1.Step
npm install npm -g
npm install npm --save-dev
2.Step
npm outdated
Package Current Wanted Latest
npm 3.5.3 3.5.4 3.5.3
package.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
Is the npm
update not working?
You can update your npm
installation using npm
itself.
You need to install the newest version of npm
as a global package:
$ npm install npm -g
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.