简体   繁体   中英

I can not do "npm install" to my project in React. When I running "npm install" i get error massage

When I running "npm install" I get this Error message:

found 15369 vulnerabilities (15366 low, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

I tried to run "npm audit" and I get this error message:

found 15369 vulnerabilities (15366 low, 3 high) in 2153 scanned packages
  run `npm audit fix` to fix 15366 of them.
  3 vulnerabilities require manual review. See the full report for details.

I tried to run "npm audit fix --force" and I get this error message:

fixed 15366 of 15369 vulnerabilities in 2153 scanned packages
  3 vulnerabilities required manual review and could not be updated

I tried to delete my package-lock.json and delete node_modules folder, and I Tried npm install again. and I set this warning massage:

found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

Maybe you will know where the problem is?

This is not an error. It's a warning message. Should not affect your project to run most of the cases.

Try doing

npm update

It might solve the issue, Try referring the official documentation Auditing package dependency . Also it won't be a problem to run your project successfully

Maybe you have some problem with the inte.net connection or some filtering on the inte.net data?

It's a warning message. Don't worry.

npm start

And your your project will start on localhost

Hi I was facing similar problem, this worked for me.

  • Remove any kind of lock file package-lock.json in the local repo.
  • Remove local node_modules folder
  • Remove global node_modules folder, this can be found at %USERPROFILE%\Application Data\npm\node_modules .

Try running npm i again

If the solution doesn't work with npm and use yarn and install the packages atleast for now.

Check the packages' dependencies in package.json and package-lock.json. Sometimes this can be from depending on different versions of the same node package. You can try npm update first to try to update as much as possible automatically. If that does not work, find the conflicted versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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