ubuntu:install_node.js
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:install_node.js [2021/01/25 10:40] – peter | ubuntu:install_node.js [2021/01/25 10:47] (current) – peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
[[Ubuntu: | [[Ubuntu: | ||
+ | ---- | ||
+ | |||
+ | ===== Update your system ===== | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install git-core curl build-essential openssl libssl-dev python | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Install Node.js ===== | ||
+ | |||
+ | ==== Clone the Node.js repository: ==== | ||
+ | |||
+ | <code bash> | ||
+ | git clone https:// | ||
+ | cd node | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | git tag # Gives you a list of released versions | ||
+ | git checkout v13.10.1 | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Compile and install Node ==== | ||
+ | |||
+ | <code bash> | ||
+ | ./configure | ||
+ | make | ||
+ | sudo make install | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Check if node was installed correctly ==== | ||
+ | |||
+ | <code bash> | ||
+ | node -v | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Install NPM ===== | ||
+ | |||
+ | <code bash> | ||
+ | curl -L https:// | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | |||
+ | Instead, you may want to download the script, and then review the contents before actually installing it. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Test ==== | ||
+ | |||
+ | <code bash> | ||
+ | npm -v | ||
+ | |||
+ | </ | ||
ubuntu/install_node.js.1611571250.txt.gz · Last modified: 2021/01/25 10:40 by peter