Юрий Светлов
Юрий Светлов

Reputation: 1750

How do I upgrade my npm installation?

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?

Upvotes: 1

Views: 1195

Answers (1)

gnerkus
gnerkus

Reputation: 12019

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

Upvotes: 2

Related Questions