How to install node.js?

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.

1 Like

I haven’t tried v12, but you may try:

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

Some time ago, I had successfully installed a v8.11 this way.

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:

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:

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.


To install Node.js any/multiple version on Jetson Nano via NVM

  1. Install NVM (Node Version Manager)
wget -qO- | bash
  1. Close the terminal and reopen a new one after

  2. nvm install 12.13.0
    where 12.13.0 is the node version change this value according to your requirement

  3. to verify your installation
    node --version

nvm --help for more options

for more info refer to this link