Mac安装Node环境和设置npm镜像

来源:互联网 发布:牛扒和牛排区别知乎 编辑:程序博客网 时间:2024/05/22 17:00

一、安装homebrew

点击打开链接


/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

二、安装node

brew install nodejs 


三、设置npm国内镜像

淘宝国内镜像网站

$ npm install -g cnpm --registry=https://registry.npm.taobao.org



参考资料:

http://www.cnblogs.com/liuzejin/p/5832479.html


原创粉丝点击