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

ubuntu14 搭建nodejs环境 #6

Open
xiaohesong opened this issue Apr 10, 2019 · 0 comments
Open

ubuntu14 搭建nodejs环境 #6

xiaohesong opened this issue Apr 10, 2019 · 0 comments

Comments

@xiaohesong
Copy link
Owner

这里比较操蛋,为了配合capistrano-yarn,nvm配置的不行,然后sudo安装的node版本太低。

用下面的方式就好了。

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -  #对应的版本(比如第九版: setup_9.x)
sudo apt-get install -y nodejs

curl -sL 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
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