微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

未安装ReactJS

如何解决未安装ReactJS

我一直在尝试使用方法npxnpm在我的PC上安装React。我无法启动我的自定义React应用。
我检查了其他答复,但不满意。

My current node version is 12.16.2

My current npm version is 6.14.8

我的package.json文件是:

"name": "myapp","version": "0.1.0","private": true,"dependencies": {
 "@testing-library/jest-dom": "^4.2.4","@testing-library/react": "^9.5.0","@testing-library/user-event": "^7.2.1","react": "^16.13.1","react-dom": "^16.13.1","react-scripts": "3.4.3"
},"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"
 ]
}
}

enter image description here

我已经被困了几个小时了。非常感谢您的帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。