nodejs的安装和环境搭建
安装npm。 npm的项目地址: https://github.com/creationix/nvm/blob/master/README.markdown 直接从Github中将git clone nvm到本地。 $ cd ~/git $ git clone https://github.com/cnpm/nvm.git 配置终端启动时自动执行 source ~/git/nvm/nvm.sh, 在 ~/.bashrc, ~/.bash_profile, ~/.profile, 或者 ~/.zshrc 文件添加以下命令: source ~/git/nvm/nvm.sh 重新打开你的终端, 输入 nvm ``` $ nvm Node Version Manager Usage: nvm help Show this message nvm --version Print out the latest released version of nvm nvm install [-s] <version> Download and install a <version>, [-s] from source nvm uninstall <version> Uninstall a version nvm use <version> Modify PATH to use <version>