我无法在我的项目中运行npm start
,这是我的package.json
文件:
{
"name": "babek",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-preset-env": "^1.7.0",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-scripts": "^3.1.1",
"webpack": "^4.41.2"
}
}
终端说:Failed at the [email protected] start script.
该项目仍然包含一些非常基本的文件。那么这里可能出什么问题了,npm start
启动服务器的要求是什么?
我无法在我的项目中运行npm start,这是我的package.json文件:{“ name”:“ babek”,“ version”:“ 1.0.0”,“ description”:“”,“ main”: “ index.js”,“ scripts”:{“ test”:“ echo \”错误:否...
您需要将其包括在脚本中:
您需要添加一个这样的脚本。