I am trying all possible ways to create a React application. I have tried Maven, and now I am trying create-react-app
from Facebook Incubators.
When I tried to run the command create-react-app my-app
in npm environment, it worked on my personal system with no issues. But, when I tried the same command in my work environment, I encountered the following error on my command line:
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! unable to get local issuer certificate
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
sudo
when I rannpm install aws-sdk
. Runningsudo npm install aws-sdk
caused this error for me.npm config set cafile
before using another solution, that may be causing your UNABLE_TO_GET_ISSUER_CERT_LOCALLY issue. You can surgically undo that setting or if you are likely me and want a clean start, just rename your.npmrc
npm config set strict-ssl
false worked for menpm config set strictSSL false
worked... I use lerna - maybe that's the reason