When trying to download a new generator I ran into an issue regarding my NODE_PATH:
- NODE_PATH
=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
- NPM root = /home/carlos/npm/lib/node_modules/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:/home/carlos/npm/lib/node_modules/lib/node_modules
Or run this command
echo "export NODE_PATH=$NODE_PATH:/home/carlos/npm/lib/node_modules/lib/node_modules" >> ~/.bashrc && source ~/.bashr
I added the line to my ~/.bashrc and it seems to have sorted the issue. My generators are now showing up.
I ended up writing a post about my issues with yemoan and nodejs
The problems I was having were permission problems which were in relation to nodejs, npm, and where things were being installed.