React 项目未在服务器上运行(在“npm start”命令上)

问题描述 投票:0回答:1

找不到模块“ajv/dist/compile/codegen” 需要堆栈:

  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules jv-keywords\dist\definitions ypeof.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules jv-keywords\dist\keywords ypeof.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules jv-keywords\dist\keywords\index.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules jv-keywords\dist\index.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules\schema-utils\dist alidate.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules\schema-utils\dist\index.js
  • C:\Users\Dell\Desktop\mern-app\my-app ode_modules\webpack-dev-server\lib\Server.js
  • C:\Users\Dell\Desktop\mern-app\my-app 颂歌模块 eact-scripts\scripts\start.js

如何纠正这个问题?

javascript php reactjs node.js
1个回答
0
投票

逐步尝试以下命令:

npm uninstall ajv ajv-keywords
npm install [email protected] [email protected]
npm cache clean --force
rm -rf node_modules package-lock.json
npm install
npm start
© www.soinside.com 2019 - 2024. All rights reserved.