How do I install node.js v12.13.0? (On jetson nano)
If I do sudo apt-get install nodejs
I only get v8.10.0.
How do I install node.js v12.13.0? (On jetson nano)
If I do sudo apt-get install nodejs
I only get v8.10.0.
I haven’t tried v12, but you may try:
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
Some time ago, I had successfully installed a v8.11 this way.
wget https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-arm64.tar.xz
tar -xJf node-v12.13.0-linux-arm64.tar.xz
cd node-v12.13.0-linux-arm64
sudo cp -R * /usr/local/
node -v
npm -v
that’s it ;)
To generalize these instructions, in case you want to install a newer version of nodejs:
wget https://nodejs.org/dist/v#.#.#/node-v#.#.#-linux-arm64.tar.xz
tar -xJf node-v#.#.#-linux-arm64.tar.xz
cd node-v#.#.#-linux-arm64
sudo cp -R * /usr/local/
node -v
npm -v
Where the “#” is the version number you want. For example: 12.19.0.
I have issues with ipywebrtc and have noticed that the official nodejs version is newer than what this post discusses. This might be what’s causing my issues.
You can find the most current version of nodejs at their website: nodejs.org
You may also try this, so that you’ll get it with apt and will be able to get updates.
Thank you. :)
I’ll try that one again, I did try it a few installs ago and it never worked out. It kept saying it was up to date, even though when I did a “node -v”, the installed package way older than the current version.
I’m a newbie though, so was probably doing something wrong.
Cheers!
To install Node.js any/multiple version on Jetson Nano via NVM
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
Close the terminal and reopen a new one after
nvm install 12.13.0
where 12.13.0 is the node version change this value according to your requirement
to verify your installation
node --version
nvm --help
for more options
for more info refer to this link