yeoman / doctor

Detect potential issues with users system that could prevent Yeoman from working correctly
http://yeoman.io
BSD 2-Clause "Simplified" License
61 stars 16 forks source link

"Your yo version is outdated" #38

Closed Carglass closed 6 years ago

Carglass commented 6 years ago

When I try to install yeoman npm install -g yo, I receive the following status at the end of the install from yo doctor:

Yeoman Doctor Running sanity checks on your system

√ Global configuration file is valid √ NODE_PATH matches the npm root √ Node.js version √ No .bowerrc file in home directory √ No .yo-rc.json file in home directory × yo version

Your yo version is outdated.

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

√ npm version

Found potential issues on your machine :(

So I tried npm install -g yo@latest but I end up with the same issue. It is to be noted that it was the first time I installed yo on this machine. I could not find any ressource regarding this issue, but please let me know if there is a simple solution.

Thanks,

SBoudrias commented 6 years ago

Is yo working after the install or is this failing the installation?

Carglass commented 6 years ago

yo is not working after the installation. I tried this installation on a Windows 7 PC.

SBoudrias commented 6 years ago

Any chance your global npm install folder is missing from your system PATH?

danxfisher commented 6 years ago

I solved this by adding %APPDATA%\npm to my system PATH. After I updated my node version, I had to remove and re-add the paths to my system PATH for whatever reason.

Carglass commented 6 years ago

this was indeed a problem with the path. Thanks for the help!

bvh165 commented 6 years ago

@danxfisher could you give me more details, I'm new in linux. Thank you so much

edtorba commented 5 years ago

Restarting CMD resolved my issue. 🤦‍♂️

aocampov commented 5 years ago

Restarting CMD resolved my issue. 🤦‍♂️

Its true!!!!

DAlSantana commented 4 years ago
  1. Run Node.Js from as Administrator

  2. npm install -g yo

Be happy.