【发布时间】:2017-11-15 16:16:59
【问题描述】:
我正在尝试在本地运行 npm run,然后运行 npm init,它创建了 package.json。这是我的 package.json
"name": "ironic-ui",
"version": "1.0.0",
"description": "======================== Team and repository tags ========================",
"main": "test-shim.js",
"directories": {
"doc": "doc"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://git.openstack.org/openstack/ironic-ui"
},
"author": "",
"license": "ISC"
}
有什么遗漏吗?还是我需要安装更多的东西?我收到错误“缺少脚本:lint” 谢谢
【问题讨论】:
-
您正在运行什么命令导致错误消息?
-
npm run lint path_to_the_file_name.js