Home > Software engineering >  Facing an Error when installing create-react-app package from npm
Facing an Error when installing create-react-app package from npm

Time:01-16

I'm trying to install React on my Computer. I'm a beginner and installing it for the first time. However, when I used create-react-app react-app to start a project, it showed the following:

But the app is working fine, I launched the server through npm start and it works, so should I ignore these errors or not?

CodePudding user response:

the first warning you get (deprecated) means that one of the packages you are using (in this case - source-map-resolve) was deprecated (i.e is not maintained). you can go to the package GitHub repo to find a way to resolve it.

the second error you get (cannot read properties of undefined) tells you that there is a difference between versions of global packages. sometimes restarting your wifi helps it, or updating NPM/windows/node/all your packages

CodePudding user response:

run npm audit fix and see if that helps. If not then i would just continue working on your project. Since you're a beginner you will learn more about NPM as you work. Npm is notorious for installing a ton of dependencies that are deprecated.

  •  Tags:  
  • Related