npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY

前端 未结 10 1393
心在旅途
心在旅途 2020-12-07 07:50

I am trying all the ways of creating react application. I have tried with maven and now i am trying with crate-react-app build system from Facebook Incubators.

When

10条回答
  •  生来不讨喜
    2020-12-07 08:35

    In my case, at some point I set my global config to use a cert that was meant for a project.

    npm config list

    /path/to/global/.npmrc
    NODE_EXTRA_CA_CERTS = "./certs/chain.pem"
    

    I opened the file, removed the line and npm install worked again.

提交回复
热议问题