"Your npm version is outdated." but it's not. While install yo

5.7k views Asked by At

On Windows 7 64 bit. Installed Node.js via wizard which gave me npm.

I run npm install -g yo and get the following

Your npm version is outdated.

Complete output:

C:\Users\dlite922>npm install -g yo
|


> [email protected] postinstall C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo\node_modules\cross-spawn\node_modules\spaw
> node postinstall

C:\Users\dlite922\AppData\Roaming\npm\yo -> C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo\lib\cli.js

> [email protected] postinstall C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo
> yodoctor


Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ Node.js version
× npm version

Your npm version is outdated.

Upgrade to the latest version by running:
npm install -g npm

See this guide if you're having trouble upgrading:
https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows

√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory

Found potential issues on your machine :(
[email protected] C:\Users\dlite922\AppData\Roaming\npm\node_modules\yo
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], take
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], nested-error-stack
[email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], debug@
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Yet I have a pretty recent npm version:

C:\Users\dlite922>npm -v
2.10.1

I followed the troubelshooting and put my %appdata% npm BEFORE nodejs in my %PATH% list, but still get the response above.

Any luck?

PS: By the way this mean stack is so disorganized. There's 50 million ways of installing and all advertise a quick two step installation on their frontpage like it's the easiest thing in the world. Then everybody feels stupid when the 20 pre-requisites they assumed was installed does not work. Web App Development future is in shambles if javascript is leading the way these days. I thought PHP days were bad. lol /endRant

1

There are 1 answers

1
gnerkus On BEST ANSWER

The yo package isn't detecting your npm version properly. The output of the installation indicates that it installed correctly.