1.安裝nodejs
sudo apt-get install nodejs
sudo apt-get install nodejs-legacy
安裝后 , 輸入node -v
查看ndoe版本信息
2.安裝npm
sudo apt-get install npm
安裝后, 輸入npm -v
查看npm版本信息
3.安裝nrm
nrm 主要用于切換npm 下載源
sudo npm install nrm
安裝后 , 輸入 nrm -h
查看相關(guān)信息
nrm ls
:查看有多少個源
nrm use
:使用哪個院
nrm add
:添加源
nrm del
:刪除源