首页 > 解决方案 > Create-react-app 卡在“发现 0 个漏洞”上

问题描述

运行 "create-react-app (app name)" 后,cmd 停止在 "found 0 vulnerabilites" 上(请原谅我的英语) 在此处输入图像描述 但有时进程会在这里停止(等了一个多小时):

在此处输入图像描述 我使用 npx create-react-app

标签: reactjsnpm

解决方案


使用npx,这是首选方式。首先删除全局create-react-app:

npm uninstall -g create-react-app

然后:

npx create-react-app my-app-name

推荐阅读