[Yeoman] Check Yeoman

There is a command to check whether there is problem with your configuration of your Yeoman.

yo doctor
  • If there is something wrong :
[Yeoman Doctor] Uh oh, I found potential errors on your machine
---------------

[Error] NPM root value is not in your NODE_PATH
[info]
NODE_PATH = /usr/bin/node
NPM root = /usr/lib/node_modules

[Fix] Append the NPM root value to your NODE_PATH variable
Add this line to your .bashrc
export NODE_PATH=$NODE_PATH:/usr/lib/node_modules
Or run this command
echo "export NODE_PATH=$NODE_PATH:/usr/lib/node_modules" >> ~/.bashrc && source ~/.bashrc
  • If everything is OK :
[Yeoman Doctor] Everything looks alright!
Advertisements