Nodejs的安裝與使用
使用nvm下載nodejs https://github.com/creationix/nvm#install-script
去ubuntu下指令下載nvm To install or update nvm, you can use the install script using cURL:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
下載安裝完成後,把putty視窗關掉重連。
接著使用nvm指令安裝最新穩定版的Nodejs,使用下面指令
nvm install --lts
只安裝dependencies而不安裝devDependencies
npm i --production