简体   繁体   English

反应,npm 启动问题

[英]React, npm start issue

我得到的错误

this is the error I get when I try to run npm start not really sure what it is saying这是我尝试运行时遇到的错误 npm start 不确定它在说什么

Try running npm install command again and if that doesnt work out, Try downgrading react scripts.再次尝试运行 npm install 命令,如果这不起作用,请尝试降级反应脚本。

npm install react-scripts@2.1.8
npm start

I got the same issue when I create my first react project.But after getting this error I rechecked the way how I run the project.In that time I found I gave 'npm start' by opening terminal in wrong file directory.If you open your terminal and you are already in root folder, then you have to use 'cd' command and have to go to your project folder.我在创建我的第一个反应项目时遇到了同样的问题。但是在收到这个错误后,我重新检查了我运行项目的方式。那时我发现我通过在错误的文件目录中打开终端给出了“npm start”。如果你打开您的终端并且您已经在根文件夹中,那么您必须使用'cd'命令并且必须转到您的项目文件夹。 Then give 'npm start'.然后给出'npm start'。

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

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