Problem with NPX create-react-app. Keeps getting stuck at “Found 0 Vulnerabilties”

故事扮演 提交于 2021-02-11 14:09:39

问题


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.

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

NPM Version: 6.14.4

Node Version: v12.16.2

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.


回答1:


try:

sudo npm install npm@latest -g

and then create a new app.

Also, you need to install git before run npx:

sudo apt install git


来源:https://stackoverflow.com/questions/61210300/problem-with-npx-create-react-app-keeps-getting-stuck-at-found-0-vulnerabiltie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!