On my way setting up Node.js with NVM, I stumbled upon an error when using Yeoman. I got
the error
Cannot find module
NVM will set the path for node and npm once you run
nvm use
However, that is just for the current shell and any new shells will not have a version of node an npm selected until your run the previous command unless you set a default version
nvm alias default
voila! You have a working version of npm and node in any new shell you open.
To change the default simply run it again with the new version of node you want to use. e.g.
nvm alias default v5.4.0