I am going through a Lynda course, called Learning ReactJS. In the 2nd video of the 3rd chapter, I need to generate a react project. First, I have to perform a global installation of the react app template using the following command on Git Bash (opened with "Run as administrator):
npm install -g create-react-app
However, the specific command is not working. I am getting this error:
$ npm install -g create-react-app
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! enoent request to https://registry.npmjs.org/create-react-app failed, reason: getaddrinfo ENOENT registry.npmjs.org:443
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\John\AppData\Roaming\npm-cache\_logs\2018-10-09T04_14_56_183Z-debug.log
How can I fix this issue?
I am stuck and can't proceed further to the course without solving this issue. So, I am badly in need of your help.