npm和cnpm(macOS)安装步骤
发布于 4 年前 作者 uwu 4063 次浏览 来自 分享

原文:https://my.oschina.net/piscdong/blog/3113475

本文截取了原文中npm和cnpm的安装部分

安装npm

$ brew install node

配置cnpm

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

完成

补充:安装Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
回到顶部