使用 创建一个新的 ReactJS 应用程序后npx create-react-app testapp,该命令npm start(或任何其他 npm 脚本)在我的任何React项目中都不起作用。它不向控制台提供任何输出,并且其中的日志文件~/.npm/_logs/与该start命令无关。
我尝试过的事情:
package-lock.json并node_modules/运行npm install(它工作得很好,但不能解决问题npm start)5.3.12-arch1-1)附加信息:
node -v = 13.3.0
npm -v = 16.13.1
这是package.json最近创建的应用程序:
{
"name": "react-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.3.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": …Run Code Online (Sandbox Code Playgroud)