首页 > 技术文章 > ubuntu 安装nodejs和git

xbzhu 2018-04-24 09:14 原文

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

推荐阅读