[英]I'm having trouble working on a new react project. I've install all the necessary packages but still I can't run my server using npm start?
I'm getting this error我收到这个错误
rnal command, operable program or batch file.
rnal 命令、可运行的程序或批处理文件。 node:internal/modules/cjs/loader:936 throw err;
node:internal/modules/cjs/loader:936 抛出错误; ^
^
Error: Cannot find module 'G:\\Web-Development\\Jumping into React\\react-scripts\\bin\\react-scripts.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
错误:在 Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) 中找不到模块“G:\\Web-Development\\Jumping into React\\react-scripts\\bin\\react-scripts.js”在 Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module :17:47 { 代码: 'MODULE_NOT_FOUND', requireStack: [] }
seems, that You didin't install react-scripts, which are needed here try to run first:看来,您没有安装react-scripts,这里需要先尝试运行:
npm i
or或者
yarn
Btw.顺便提一句。 you should include here at last your package.json file
您应该最后在此处包含您的 package.json 文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.