Skip to content

Instantly share code, notes, and snippets.

@eddiemonge
Created October 22, 2014 20:48
Show Gist options
  • Save eddiemonge/8c4c904720f9b716b8a1 to your computer and use it in GitHub Desktop.
Save eddiemonge/8c4c904720f9b716b8a1 to your computer and use it in GitHub Desktop.
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js
> yo@1.3.3 postinstall /usr/local/lib/node_modules/yo
> yodoctor
[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/local/lib/node_modules
npm root = /bin/sh: npm: command not found
[Fix] Append the npm root value to your NODE_PATH variable
Add this line to your .bashrc
export NODE_PATH=$NODE_PATH:/bin/sh: npm: command not found
Or run this command
echo "export NODE_PATH=$NODE_PATH:/bin/sh: npm: command not found" >> ~/.bashrc && source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment