Update production scripts to install/load NodeJS/npm using nvm

This commit is contained in:
wiz
2020-09-18 21:53:58 +09:00
parent d32657cfd2
commit 12e388a61c
4 changed files with 23 additions and 2 deletions

View File

@@ -68,6 +68,16 @@ pkg install -y boost-libs autoconf automake gmake gcc libevent libtool pkgconf
pkg install -y mariadb55-server mariadb55-client nginx py37-certbot-nginx npm
```
### NodeJS / npm
I recommend to build nodejs / npm from source using nvm:
```
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | zsh
source $HOME/.zshrc
nvm install node
nvm alias default node
```
### Rust
I recommend to build rust from latest source: