【发布时间】:2019-10-29 04:47:05
【问题描述】:
我几乎什么都试过了,删除 node_modules 几十次,删除 webpack-dev-server 和所有 webpack 包,尝试了 npm 和 yarn , 降级 react-scripts 仍然存在问题,我无法在我的项目文件夹中启动服务器。这是我的 package.json 文件:
{
"name": "test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"react": "^16.11.0",
"react-dom": "^16.11.0",
"react-scripts": "^3.0.0"
},
"scripts": {
"start": "react-scripts start",
"test": "react-scripts test"
}
}
我总是得到那个错误:error Command failed with exit code 1.
我的项目文件夹有什么问题,为什么服务器无法启动??
【问题讨论】:
-
投票this proposal 以缓解 [yarn] 和 [yarnpkg] 周围的标签混淆。
标签: node.js npm yarnpkg package.json