NPX create-react-app问题.不断陷入“发现0个漏洞"的困境 [英] Problem with NPX create-react-app. Keeps getting stuck at "Found 0 Vulnerabilties"

查看:74
本文介绍了NPX create-react-app问题.不断陷入“发现0个漏洞"的困境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图使用npx create-react-project创建一个新的React项目,但是下载软件包后它一直卡住.到目前为止,该文件夹仅包含节点模块和2个package.json文件.create-react-app运行良好,直到找到0个漏洞.我已经在不同的文件夹和不同的硬盘驱动器中完成了此操作,但结果相同.只是没有进一步.

So I am trying to create a new React project using npx create-react-project but it keeps getting stuck after downloading the packages. So far the folder only contains the node modules and the 2 package.json files. The create-react-app goes well until it reaches found 0 vulnerabilities. I have done this in different folders and different hard drives but the same result. It just doesn't go further.

我还删除了以前的全局create-react-app安装,但这也没有任何作用.

I also deleted my previous global create-react-app installation but this didn't make a difference either.

NPM版本:6.14.4

节点版本:v12.16.2

Node Version: v12.16.2

我的package.json文件仅包含以下内容: {"name":"myapp","version":"0.1.0",私人":是的,依赖关系":{"cra-template":"1.0.3",反应":"16.13.1","react-dom":"16.13.1",反应脚本":"3.4.1"}}

My package.json file only contains the following: { "name": "myapp", "version": "0.1.0", "private": true, "dependencies": { "cra-template": "1.0.3", "react": "16.13.1", "react-dom": "16.13.1", "react-scripts": "3.4.1" } }

**对我而言的解决方案:**我禁用了我的防病毒软件,它起作用了.

**SOLUTION FOR ME: ** I Disabled my Anti-Virus and it worked.

推荐答案

尝试:

sudo npm install npm@latest -g

,然后创建一个新应用.

and then create a new app.

此外,您需要在运行npx之前安装git:

Also, you need to install git before run npx:

sudo apt install git

这篇关于NPX create-react-app问题.不断陷入“发现0个漏洞"的困境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆