npm profile

更改注册表配置文件的设置

概要

npm profile enable-2fa [auth-only|auth-and-writes]
npm profile disable-2fa
npm profile get [<key>]
npm profile set <key> <value>

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

描述

更改注册表上的个人资料信息。请注意,此命令取决于注册表实现,因此第三方注册表可能不支持此接口。

  • npm profile get [<property>]:显示您的配置文件的所有属性,或一个或多个特定属性。看起来像:
+-----------------+---------------------------+
| name            | example                   |
+-----------------+---------------------------+
| email           | me@example.com (verified) |
+-----------------+---------------------------+
| two factor auth | auth-and-writes           |
+-----------------+---------------------------+
| fullname        | Example User              |
+-----------------+---------------------------+
| homepage        |                           |
+-----------------+---------------------------+
| freenode        |                           |
+-----------------+---------------------------+
| twitter         |                           |
+-----------------+---------------------------+
| github          |                           |
+-----------------+---------------------------+
| created         | 2015-02-26T01:38:35.892Z  |
+-----------------+---------------------------+
| updated         | 2017-10-02T21:29:45.922Z  |
+-----------------+---------------------------+
  • ZV+/bsl62QfNGJhdrJZw+wdf/S7s4h7Ue6jra4zMIw/smSviRCdaYlTrZP3U4tJsWCf9d9kByl/Q4VEeOM+7RE8Aeo3/usij4o9QnDjZ6hDM1SLVWYod5vmdhDLSv3iRv1vVZ6u8BSfrSG3BiIUcENQ2ksV9F6sQ4HVgkDrt9x6ORBYgYb7qA0VZUMsBCRO5nUz4+kXZcopK+obchtP8Fmc7FOwAEZzzzcp8t8DTdH67yO2mojCd67DUFaqJJAJuTFMnkvUPb1af35eI5aAn7w==

  • ZV+/bsl62QfNGJhdrJZw+4vmYcYn3ufKxm7xl9RjyEpvFXziLHJWYGq5hTZ3W6gQitDp1Uy8mD5dg8EpG1S8Km5j/XM3FYqIpMt9cXf8oduL6IWzPu0Tjfv/wvIYiEsfXaUCm1snDcjS1K/SzLKiIqofQltC7ndjFV09os5IyhcK3e3sPmJUC71eQHQjtSWdvfjBZuhPOopH++s0PfRh5WcChN/T/sJCo+FhWSD1Yy4L1tcLc3LPS10fqTc923ATimuCsiHz9QntpdLSUqwn+Q==

  • ZV+/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