Skip to content

Node.js

Xuwei Li edited this page Jan 20, 2022 · 13 revisions

Install

Server Management

Run

# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# nvm install 17
# ufw allow <Port>
# npm i -g pm2
# cd <Project path>
# npm i
# pm2 start npm --name "<Name>" -- start
# pm2 save
% echo $SHELL
% vim ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
% source ~/.zshrc

Clone this wiki locally