ubuntu 安装nodejs和git

1.安装curl

 sudo apt-get install curl

 

2.安装nodejs 和 npm  

 curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -  

 sudo apt-get install -y nodejs

 查看node版本 node -v  

 查看npm版本 npm -version

 

3.安装git  

 sudo apt-get install git

posted @ 2018-04-24 09:14  小水皮  阅读(605)  评论(0编辑  收藏  举报