[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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s