【发布时间】:2020-07-21 22:37:18
【问题描述】:
{
"name": "trelloclone-client",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hlee686/TrelloClone-client.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/hlee686/TrelloClone-client/issues"
},
"homepage": "https://github.com/hlee686/TrelloClone-client#readme",
"dependencies": {
"dependencies": "0.0.1",
"node_module": "0.0.0",
"start": "^5.1.0"
},
"devDependencies": {},
"description": ""
}
当我 npm start 时,我收到如下错误。
Jakes-MacBook-Air:TrelloClone-client jslee$ npm start
trelloclone-client@1.0.0 start /Users/jslee/Desktop/TrelloClone-client index.js
sh: index.js: 找不到命令
npm 错误!代码生命周期
npm 错误!系统调用产生
npm 错误!文件 sh
npm 错误!错误号 ENOENT
npm 错误! trelloclone-client@1.0.0 开始:index.js
npm 错误!生成 ENOENT
npm 错误!
npm 错误! trelloclone-client@1.0.0 启动脚本失败。
npm 错误!这可能不是 npm 的问题。上面可能还有额外的日志输出。
npm 错误!可以在以下位置找到此运行的完整日志: npm 错误! /Users/jslee/.npm/_logs/2020-04-09T10_18_00_148Z-debug.log
如何修复它并运行 npm start?
谢谢
以上是我的 package.json 文件。
【问题讨论】:
标签: reactjs