简体   繁体   English

输入 npm start 启动一个 reactjs 项目,卡在电脑上无法自动打开网站

[英]input npm start to start an reactjs project and it get stuck with computer can't open a website automatically

I want create a Reactjs project,I user command as follow:我想创建一个 Reactjs 项目,我的用户命令如下:

npx create-react-app my-app
cd my-app
npm start

I have set the C:\Windows\System32\WindowsPowerShell\v1.0 as the environment variable.我已将C:\Windows\System32\WindowsPowerShell\v1.0设置为环境变量。

However, the command npm start get stuck ,the Command Line Tool have show Starting the development server... for 1 hour !但是,命令npm start卡住了,命令行工具显示正在启动开发服务器... 1小时! And the computer can't open a website automatically!而且电脑不能自动打开网站!

what should I do to solve this problem?我应该怎么做才能解决这个问题?

the solution is解决方案是

  1. reboot your computer重新启动计算机
  2. allow the IDE(eg VSCode) to control your computer's behaviors.允许 IDE(例如 VSCode)控制您的计算机的行为。

and it worked.它奏效了。

it associate with a permission problem它与权限问题有关

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

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