简体   繁体   English

我在处理新的 React 项目时遇到问题。 我已经安装了所有必要的软件包,但仍然无法使用 npm start 运行我的服务器?

[英]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.

相关问题 Bootstrap Carousel 在我的反应项目中不起作用。 我已经尝试了一切,但仍然无法正常工作 - Bootstrap Carousel is not working in my react project. I've tried everything but it's still not working 我正在尝试在我的服务器上运行我的新反应项目 - I'm trying to run my new react project on my server 我正在使用 Mamp,所以我可以将 phpAdmin 用于我的 react native 项目。 如何修复根文件夹 - I'm using Mamp so I can use phpAdmin for my react native project. How can I fix the root folder 我无法运行 react web 项目并且 npm install 也无法正常工作 - I'm not able to run the react web project and npm install also not working 当我在react项目上运行“ npm start”时,网络地址在我的手机上不起作用 - When i run “npm start” on my react project, the network address doesn't work on my phone 我反应迟钝 - I'm having trouble with react 如何使用 npm start 查看我的项目? - How can I see my project using npm start? 我无法使用 npm 开始运行反应应用程序如何解决此错误? - i can't run react app using npm start how to fix this error? 我无法让 npm start 运行 - I can't get npm start to run 我无法在 React 中对我的项目执行“npm install”。 当我运行“npm install”时出现错误信息 - I can not do "npm install" to my project in React. When I running "npm install" i get error massage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM