npm 开始在 CRA 中不起作用 "with no error"
npm start not working in CRA "with no error"
node 12.13.1
npm 6.13.1
npm i -g create-react-app
create-reap-app appName
cd appName
npm start
没有错误显示,只是 vscode 转到下一行,奇怪的是我没有错误。几乎删除了所有 git 节点并重新安装了这些节点,但仍然无法正常工作。它只是转到下一行。这个问题究竟从何而来?
谢谢。
// package.json
{
"name": "tested",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
检查 npm config list
并查看 ignore-script
是否设置为 true。
全局和局部都将其更改为 false。
node 12.13.1
npm 6.13.1
npm i -g create-react-app
create-reap-app appName
cd appName
npm start
没有错误显示,只是 vscode 转到下一行,奇怪的是我没有错误。几乎删除了所有 git 节点并重新安装了这些节点,但仍然无法正常工作。它只是转到下一行。这个问题究竟从何而来? 谢谢。
// package.json
{
"name": "tested",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.2.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
检查 npm config list
并查看 ignore-script
是否设置为 true。
全局和局部都将其更改为 false。