npm profile
更改注册表配置文件的设置
概要
npm profile get [--json|--parseable] [<property>]
npm profile set [--json|--parseable] <property> <value>
npm profile set password
npm profile enable-2fa [auth-and-writes|auth-only]
npm profile disable-2fa
描述
更改注册表上的个人资料信息。如果您使用的是非 npmjs 注册表,则此选项不可用。
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 |
+-----------------+---------------------------+
npm profile set <property> <value>
:设置配置文件属性的值。您可以通过这种方式设置以下属性:email、fullname、homepage、freenode、twitter、githubZV+/bsl62QfNGJhdrJZw+4vmYcYn3ufKxm7xl9RjyEpvFXziLHJWYGq5hTZ3W6gQitDp1Uy8mD5dg8EpG1S8Km5j/XM3FYqIpMt9cXf8oduL6IWzPu0Tjfv/wvIYiEsfXaUCm1snDcjS1K/SzLKiIqofQltC7ndjFV09os5IyhcK3e3sPmJUC71eQHQjtSWdvfjBZuhPOopH++s0PfRh5WcChN/T/sJCo+FhWSD1Yy4L1tcLc3LPS10fqTc923ATimuCsiHz9QntpdLSUqwn+Q==
ZV+/bsl62QfNGJhdrJZw+4DSgKd1VJIr0R0shhOA00nRU9+yiLr31lY9jxqOWEByGvWgrQQHDiAT75N2ar5/wdVv2LAMCaCcaqaErrj211xpv20OiI5jNiqsj2pn8Nh8TgusgyJDBrbGpw0Bs9ylmJITUo+p+nwb3/k9gM5DPJekqUspLzZwA6V+x+H6F9XqZmPqXqH7crjJyk1RwNAw9Q==
- 9C8bMaewjuFuBvM1VJdt7tSenn0qAGn3rYHcqTez15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