notes on node versions

This commit is contained in:
Paul Trowbridge 2020-01-21 17:33:42 -05:00
parent 846a0f4144
commit 20f9856dec

View File

@ -1,3 +1,8 @@
version management
===================================================================================================================================
## nvm
can use nvm to manage nodejs versions.
not really sure how this works, but it is per user and operates off bash scripts and variables ¯\_(ツ)_/¯
@ -6,3 +11,18 @@ going to have to pull from github. It will curl to clone the repo and then add s
nvm install --lts
nvm use version
## npm n helper
npm can be used to manage node itself through n
https://github.com/tj/n
sudo npm cache clean -f
1. setup & *own* directyory with versions
* `sudo mkdir -p /usr/local/n`
* `sudo chown -R $(whoami) /usr/local/n`
2. own the instalation folders
* `sudo chown -R $(whoami) /usr/local/bin /usr/local/lib /usr/local/include /usr/local/share`
3. install n: `sudo npm install -g n`