每次我创建新的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"
}
2条答案
按热度按时间axr492tv1#
您可以按照命令运行
或转到package.json文件并编辑作者名。
quhf5bfb2#
也可以使用破折号:
npm配置集初始化作者名“作者名”