Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto install node env #3

Open
joeangel opened this issue Dec 11, 2017 · 2 comments
Open

auto install node env #3

joeangel opened this issue Dec 11, 2017 · 2 comments

Comments

@joeangel
Copy link
Owner

Install npm first

sudo apt-get install npm

ref: https://docs.npmjs.com/cli/install

sudo npm install -g n

ref: https://github.com/tj/n

@joeangel
Copy link
Owner Author

Install yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

ref: https://yarnpkg.com/lang/en/docs/install/#linux-tab

@joeangel
Copy link
Owner Author

joeangel commented Dec 14, 2017

Install pm2

npm install -g pm2

ref: https://www.npmjs.com/package/pm2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant