Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,我在全球范围内进行此操作,然后安装我的应用程序。然后我去我的项目目录。最后,当我运行项目时,它会显示下图中所示的错误。 我已经尝试了很多东西,例如卸载node.js然后重新安装或删除节点模块等。您认为还有什么,我应该尝试吗?先感谢您。
node.js
项目在http://192.168.0.101/运行
将 react-script 版本降级到 2.1.8。 npm install react-scripts@2.1.8 npm start
npm install react-scripts@2.1.8 npm start
包 json 依赖项应该更新为
"dependencies": { ------------------ --------------------- "react-scripts": "2.1.8" },