個人系統node
1.打開github官網https://github.com/,輸入nvm搜索,選擇creationix/nvm,打開git
2.找到Install script,複製github
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
.bash
3. 打開終端,把第2步複製的添加sudo權限,粘貼到終端裏curl
4.此時nvm雖然安裝好了,但仍然不能用,由於尚未添加環境變量,nvm安裝好之後會提示添加環境變量到,第三步圖中提示本身添加一下的代碼即是,以下圖,如此nvm就能夠用了url
5.nvm安裝node以下code