2021-01-04-How To Install Node J
2021-01-04 本文已影响0人
一_贫
https://stackoverflow.com/questions/54542402/how-to-install-node-js-in-ubuntu-18-10#54542526
Install node version manager:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
Activate nvm:
. ~/.nvm/nvm.sh
Use nvm to install the version of node you want:
nvm install 4.4.5
Test that Node.js is installed:
node -e "console.log('Running Node.js ' + process.version)"