gpt4 book ai didi

node.js - npm start 在 CRA "with no error"中不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 23:12:59 26 4
gpt4 key购买 nike

node 12.13.1

npm 6.13.1

npm i -g create-react-app

create-reap-app appName

cd appName

npm start

并且没有错误显示,只是 vscode 转到下一行,奇怪的是我没有错误。删除了几乎所有 git node 并重新安装了它们,但仍然无法正常工作。只需转到下一行即可。这个问题到底从何而来?谢谢。

enter image description here

// 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配置列表并查看ignore-script是否设置为true。

将其全局和本地更改为 false。

关于node.js - npm start 在 CRA "with no error"中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59081734/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com