ubuntu:install_node.js
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:install_node.js [2021/01/25 10:41] – peter | ubuntu:install_node.js [2021/01/25 10:47] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
---- | ---- | ||
- | ===== Install Node.js | + | ===== 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 | ||
+ | |||
+ | <code bash> | ||
+ | ./ | ||
+ | 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.1611571304.txt.gz · Last modified: 2021/01/25 10:41 by peter