简体   繁体   English

无法运行:npm start on react

[英]can't run : npm start on react

When I try to run my project with npm start it does show this error it doesn't seem to be clear for me:当我尝试使用 npm start 运行我的项目时,它确实显示了这个错误,我似乎不清楚:

react-app-rewired start

The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webapp@0.1.0 start: `react-app-rewired start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the webapp@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\kilanh\AppData\Roaming\npm-cache\_logs\2020-03-11T09_43_14_766Z-debug.log
  • i faced the same issue I think the problem is with npm with yarn it works fine please try the following :我遇到了同样的问题,我认为问题出在 npm with yarn 上,它工作正常,请尝试以下操作:
  • delete lock files删除锁定文件
  • delete node_modules删除 node_modules
  • run "yarn"运行“纱线”
  • run "yarn start"运行“纱线启动”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM