Editing
My Node Version Manager (NVM) notes
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== NVM on my Ubuntu VM == There are multiple ways to install NVM. I used NVM BASH script and instructions located [https://github.com/nvm-sh/nvm#installing-and-updating here]. == NVM on Dreamhost == '''NOTE: What makes Dreamhost cool is the ease in which things can be setup. There is nothing easy about setting up Node.js, NVM, and getting Node apps to work on Dreamhost shared virtual systems. I found it much easier to setup my own VM for development then get a new hosting provider for my Node.js apps. I plan to migrate all my hosting to Node.js hosting provider unless Dreamhost natively supports Node.js.''' My notes while installing NVM on Dreamhost shared server [https://help.dreamhost.com/hc/en-us/articles/360029083351-Installing-a-custom-version-of-NVM-and-Node-js Installing a custom version of NVM and Node.js] <pre>[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)</pre> 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> When updating NVM and want to change the default version, run this command: <pre>[servername]$ nvm alias default v<version string> default -> v12.18.3</pre> <center>[[My Node.js notes]]</center>
Summary:
Please note that all contributions to GotOpinion may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
GotOpinion:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information