Install node (latest version) on linux

From wiki.ferrari.mo.it
Jump to navigation Jump to search
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install

If there are problems with node-pre-gyp, they likely are caused by bcrypt. In this case, execute:

npm uninstall bcrypt --save
npm install bcrypt@5 --save

Not sure if sqlite3 linux package is needed. In case:

apt-get install sqlite3

(Last update 13/05/2022).