Keep environment setup


#1

I ran some setups like node upgrade and npm install -g and everything worked. However, after I restart the environment, I have to run the node upgrade again with npm install -g. Is there a way to keep these installations permanent?


#2

please see Node version not persisting you need to use nvm alias command to change the default version of node


#4

I tried and it is not working. I restarted the instance and the node instance is back to 2.15.11. Any other suggestions?


#5

what command did you use to upgrade node?


#6

nvm install node && nvm alias default node && npm update npm -g


#7

Use nvm alias default <version>
I did
nvm install stable
nvm alias default stable
And it sticks to this stable version