-
1.临时使用
npm --registry https://registry.npm.taobao.org install gitbook-cli
-
2.永久使用
npm config set registry https://registry.npm.taobao.org
-
3.使用cnpm代替
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm --registry https://registry.npm.taobao.org install gitbook-cli
npm config set registry https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org