问题
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