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

xiaoxiao2021-02-28  93

一、安装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

转载请注明原文地址: https://www.6miu.com/read-64917.html

最新回复(0)