ubuntu下用nvm配置好nodejs环境

cd ~
mkdir .git
cd .git
git clone https://github.com/creationix/nvm.git

这样先把nvm下载过来,然后安装

./install.sh

cd ~
mkdir .nodejs
cd .nodejs

npm install stable

这样就可以吧最新版本的nodejs环境安装好了



posted @ 2017-08-02 19:24  鸡毛巾  阅读(356)  评论(0编辑  收藏  举报