【发布时间】:2019-04-26 13:32:41
【问题描述】:
在此之前我已经运行了“npm install”,并且所有必要的依赖项都已安装。
我也试过卸载旧版本的 NodeJS 并安装最新版本,但还是不行。
应该会弹出一个带有 React 应用程序的浏览器窗口。
我的 package.json 文件如下所示:
{
"name": "test",
"version": "0.1.0",
"private": true,
"dependencies": {
"add": "^2.0.6",
"bootstrap": "^4.1.3",
"react": "^16.6.3",
"react-bootstrap": "^0.32.4",
"react-dom": "^16.6.3",
"react-redux": "^5.1.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.1.1",
"react-select": "^2.1.1",
"redux": "^4.0.1",
"yarn": "^1.12.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"proxy": "http://localhost:57111/"
}
【问题讨论】:
-
您是否尝试手动访问该 URL?
-
我们可以看看你的 package.json 脚本吗?