Home > Software design >  I am getting an error message when I try to install react icons
I am getting an error message when I try to install react icons

Time:01-04

I am learning react and I am new to really using the terminal and have been trying to familiarize myself with how to use it. And I have been successful at figuring most things out from YouTube, Stack Overflow and Google without having to ask (post) a question. However I am having issues with trying to import react icons. I am going through the Youtube video teaching how to create a react todo list app. I go to the terminal in VSC on my macbook and my understanding I have npm installed. I then go to input "npm install react-icons" and at first I got a list of error messages saying

"npm warn and some description next to it. It then said at the bottom audited 2400 packages in 14s found 77 vulnerabilities (6 low, 66 moderate, 5 high) run npm audit fix to fix them, or npm audit for details"

I then copied and pasted "npm audit fix" After that I then got an error message very similar to the first one but this time saying if you want them to be completely updated and not have any errors then input "npm audit fix --force" Once I did this I then got this last screen shot which now I know this is very bad. And I don't know what to do next at all.

All I am trying to do is install my react icons for this project and also learn. I am very curious on the step by step process on what needs to be done to get this fixed. Thanks for your time to read this and helping out. enter image description here

Reconstruct your project, or use "npm init -y" then, rebuild package.json file.

CodePudding user response:

Thank you for reaching out. I have actually gotten an update. So I input rm -rf node_modules. I then input npm i to re-install it. I then got back to the main issue which is the photo below. Which according to the Youtube video I type in npm install react-icons. And I get a new tab that opens up that shows react icons. Instead I am still getting the information in the photo below npm warn errors

  •  Tags:  
  • Related