GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Access NPM within the given node version as follow
nvm npm 0.6.14
Add support for NPM
Update README for NPM support
What's the use case? Why not just switch to that version, and then use npm?
@creationix I am sorry, i am new & confused. Thought that was the way to go till i understood nvm use is required for npm to be on my path. Now i am trying to figure out how to avoid nvm use 0.10 in my .bash_profile so i can have npm in the path.
nvm use 0.10
nvm is a tool to manipulate a bash environment. One neat feature is to alias default to your preferred node version. On my machines I have nvm alias default 0.10. Then every time I source nvm in a new shell, the latest 0.10.x node is put in my path (with it's own copy of npm)
nvm alias default 0.10
This alias command is persistent, it's not something you need to put in your .bashrc. Just do it once in any shell that has nvm loaded.
yes! cool! that worked! Thanks @creationix :)
@creationix The use case for this request: managing multiple node apps that require different node versions without the need to switch continuously to use the correct NPM.