每次新建 npm 项目,作者名都写错了,可以改吗?
package name: (template) template
version: (1.0.0)
description:
entry point: (index.js) bot.js
test command:
git repository:
keywords:
license: (ISC)
About to write to:
{
"name": "template",
"version": "1.0.0",
"description": "",
"main": "bot.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "*wrong author*",
"license": "ISC"
}
Run Code Online (Sandbox Code Playgroud)
您可以按照 Commond 运行
npm config set init.author.name "your name"
Run Code Online (Sandbox Code Playgroud)
或转到 package.json 文件并编辑作者名称。
package name: (template) template
version: (1.0.0)
description:
entry point: (index.js) bot.js
test command:
git repository:
keywords:
license: (ISC)
About to write to:
{
"name": "template",
"version": "1.0.0",
"description": "",
"main": "bot.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Rajneesh Shukla",
"license": "ISC"
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2602 次 |
| 最近记录: |