Difference between revisions of "Install node (latest version) on linux"

From wiki.ferrari.mo.it
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
+
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
  
sudo apt-get install -y nodejs
+
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).

Latest revision as of 12:17, 13 May 2022

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).