Skip to main content

How to install Node.js, npm and pnpm on Linux

In this short guide you will learn how to install Node.js and pnpm for SnailyCADv4 on Linux.

warning

Node.js version 19.x is not supported. Please use 18.x.

Node.js

First, update your existing list of packages with the following command:

sudo apt update

Next, install the Node.js source repository with the following command:

curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -

Finally, install Node.js with the following command:

sudo apt install nodejs

This will install both Node.js and npm on your Ubuntu system.

pnpm

To install pnpm, please follow the installation instructions on their documentation

Verify the installation

To verify that Node.js and pnpm are installed, run the following commands:

node -v
npm -v
pnpm -v

Was this page helpful?