dnodejs.com 每日分享 - npm config 的最常用配置

384 阅读1分钟

npm 系列第 2 篇我们选择来介绍一下 :

npm config set [--global]
npm config get
npm config delete
npm config list
它有什么用呢?
npm gets its config settings from the command line, environment variables, npmrc files, and in some cases, the package.json file.

我们一般都是来设置 代理 的:

npm config set registry https://registry.npm.taobao.org
更多查看:
docs.npmjs.com/cli/config