Difference between revisions of "Install node (latest version) on linux"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
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). | (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).