npm config

管理 npm 配置文件

概要

npm config set <key>=<value> [<key>=<value> ...]
npm config get [<key> [<key> ...]]
npm config delete <key> [<key> ...]
npm config list [--json]
npm config edit

alias: c

注意:此命令对工作区无感知。

描述

npm 从命令行、环境变量、npmrc 文件以及在某些情况下从 package.json 文件获取其配置设置。

有关 npmrc 文件的更多信息,请参见 npmrc

有关所涉及机制的更详尽解释,以及可用配置选项的完整列表,请参阅 config(7)

+fJDBqKiQO3Noe5IPfohfiV3u/NdO06LFrKPZfuX+5Cg5McVfL7ol9HxgL9q+yiO6CARh5P0EEmViupA3X1W6CG9tfyQM0Kwx1lA244e5C9Gx+8+STpJ87hO/VP05597

子命令

yCzUagjsGPgj1LnTUipePJUOKL4gayVl0BEqbRMI0RU=

set

npm config set key=value [key=value...]
npm set key=value [key=value...]

x+XpxZdRlMgLg80uvodwG3aEVOaBi9XlvQFOMZ4Xm4LwuiYHuKAiRc/nG/QoHn1G

SARBI7n4KAjTyc8LYQtnapmBtNRCqAFOZHHetGKqHQ7JoSU44hQn36L+ZjCjInz62OzuEtIqR0GjRtWFBCmZeQ==

/se5rLiTo43eaCkvgMRKmZvAxbfFHRfkttshzsi7YmFpnLqFD/4Vd9EkHjWq0H4hmSIqNgZCEXQMVb7GfQP1/Q6h/mO31KssWr9KNIzv5X5xwBYxeJ2UMpEzQuDtVc0GerN1py9giByMYS/XTYgZT+VxffKLWR2ktujW2dgvcOqsv30RXZqNVVl0lnRLQRyk

get

npm config get [key ...]
npm get [key ...]

O96U3xjGn5d9UFYMYxNx+W7cK2+rcmRIxor9f5hMfHT79iFFSUHAGbI36efWucwe

mEJVw71ArqPCoT2Qi6tOZkaw4rO8zcwWJ372uW0K18XCLPq/K5CsS35gSkgfwDPen9WZzBHJ27uNx1tlEPOQ+A==

D9SlN3pnPBg8HHWuf9l9MRCUF61Z0yLXt2tDyXb5uZKPu5EGzn0K3Iz0jPFhcq5jDgTOEghb+AjVdavpG9ju3GgZqHuWgUJs1xm6SWo8O+rGOsC0T7XwMlCrs5Cxe9nC

list

npm config list

6HJLpvdhwkV1CAOWzJaaYn0IGkmNdTaPlVfRXCP88uk3nUeAbe18TG0HGvbZqfLR5CFzVpLKbu2MYQUnzuXo6yp5lw9UCO712QdfTUcP7OHnibn3h4pynFE/qJhbMlZdefLys5EoWSy8td4LY5xrR5Lrlbc3xek0VT629zXGzFW/yvIzmP5Hlh6yEgC+T/gO

delete

npm config delete key [key ...]

awgiHoiiWwhuh9uZpGSraGqAwx7FAvpIvw42PhNrmlWg/iCZE08Jcra4AHi3cDzy

edit

npm config edit

eVgflbU3EFjIFv6fs3VovPa/T5X2HddrtVX7DWKs+goyixrfe4mZjAZcfqvD7bYVyZYri/vQcTkXhLCn9Af3+5sh3iHATxf5XWYMMzJEc8UglC4IvK/aoZrXQTFW3YJl

配置

json

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

7/80QTYKZnIYu34dfV9Gm8DTAJjZEbsNNawFJ0cdW40i3Et2DxsNuoeCZqh5pYeEcz4is+1ZRxLaS4pGVvQxfQ==

    HQZaDSNq5SBw1QLkSxdug8pExreL0A2iruh4ezkA8TayIZQgfvK6nAoObsS5h+W35k86viVyDGqSSKB0qw4OW0lvl6nlN9s83KCixsspCGt5jXAB2ioePEzpw0J5ZJe19fSpWP+I6y0ROu0mmUSDqt59VvFGF8QzXHbPcKCtXWi9uEpNzotYy+U+mxmvEbs/MIXQZl+YTWLG9dZNSTyLVg==

8xitaPgep8qIS7kkilRxMHGmYi2gqWbfVCoMnNxDPxR3Rgwd0k7Tn9jLuAYXLqvE

global

    1rokL6V6UHCZfWr+mBKeqgKfAZFOm8muuzL7jN1R2TpPkIMwxKXStfDfaZ1Lv1AmhCrIRLfS11y3WVpwvsOw9g==

tXrB51vrIQAVmFirbhSAxKWV2X29Z8O9IBlGXT/dCzS6y1gdNT8wUk2eKHNzppPhJ6kQpjKn4EPzlG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