My Node Version Manager (NVM) notes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 22: | Line 22: | ||
lts/fermium -> v14.18.0 (-> N/A)</pre> | lts/fermium -> v14.18.0 (-> N/A)</pre> | ||
Run the following command as your user after each new version you download. < | Run the following command as your user after each new version you download. <span style="color: red">Note there should be a $ in the following command prior to (.</span> Mediawiki throwing an internal 500 error when it's there. | ||
<pre>[servername]$ setfattr -n user.pax.flags -v "mr" (find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")</pre> | <pre>[servername]$ setfattr -n user.pax.flags -v "mr" (find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")</pre> | ||
Revision as of 11:14, 11 October 2021
My notes while installing NVM on Dreamhost shared server
Installing a custom version of NVM and Node.js
[servername]$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash [servername]$ nvm ls-remote [servername]$ nvm install v16.11.0 [servername]$ node -v v16.11.0 [servername]$ nvm alias default -> v16.11.0 iojs -> N/A (default) unstable -> N/A (default) node -> stable (-> v16.11.0) (default) stable -> 16.11 (-> v16.11.0) (default) lts/* -> lts/fermium (-> N/A) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.17.0 (-> N/A) lts/dubnium -> v10.24.1 (-> N/A) lts/erbium -> v12.22.6 (-> N/A) lts/fermium -> v14.18.0 (-> N/A)
Run the following command as your user after each new version you download. Note there should be a $ in the following command prior to (. Mediawiki throwing an internal 500 error when it's there.
[servername]$ setfattr -n user.pax.flags -v "mr" (find $NVM_DIR -type f -iname "node" -o -iname "npm" -o -iname "npx")
When updating NVM and want to change the default version, run this command:
[servername]$ nvm alias default v<version string> default -> v12.18.3