0

I installed node via nvm on a fresh ubuntu 14.04 system. Everything worked great. Next day I boot up and node isn't installed:

The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy
Try: sudo apt-get install <selected package>

I try 'nvm install stable' and get:

v0.12.5 is already installed.
Now using node v0.12.5 (npm v2.11.2)

which works fine (as far as I can see) until the next reboot. I've tried all the obvious 'nvm use ####' and remove/reinstall. No effect.

How do I make the install stick across a reboot?

1 Answer 1

2

You have to setup a default version of node to be available globally.

nvm alias default v0.11.13

I suggest running nvm use stable, then doing node --version and then setting your default to the latest stable version

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .