Skip to content

Instantly share code, notes, and snippets.

@zenghongtu
Last active August 20, 2023 04:19
Show Gist options
  • Save zenghongtu/50ae254070cbfbb6f03bbddd3464bb92 to your computer and use it in GitHub Desktop.
Save zenghongtu/50ae254070cbfbb6f03bbddd3464bb92 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install node
npm i -g pm2
npm i -g @antfu/ni
echo 'done.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment