How to Install Node 12 / NPM on Cloudways

Hey team, sorry this isn’t in tutorial format! The kind support agents at Cloudways shared this snippet with me and I’ve saved it here for the next time I need it, and to possibly help others.

Please feel free to ask questions in comments.

curl | bash

source ~/.bashrc

nvm install 12.0.0

nvm alias default node

exec bash

node -v

Leave a Reply

Your email address will not be published. Required fields are marked *