Install node (latest version) on linux

From wiki.ferrari.mo.it
Revision as of 12:17, 13 May 2022 by 151.67.45.62 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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).