pau*_*dru 1 ssl certificate npm reactjs create-react-app
基于https://github.com/facebook/create-react-app我运行:
npx create-react-app my-app
Run Code Online (Sandbox Code Playgroud)
但我收到此错误:
error An unexpected error occurred: "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz: unable to get local issuer certificate".
Run Code Online (Sandbox Code Playgroud)
我一周前试过它,它适用于另一个项目。现在它似乎不再起作用了。未创建文件夹结构。
我试图将 strict-ssl 设置为 false,但它没有解决问题。有什么建议吗?
小智 5
将严格的 ssl 标志设为 false 对我有用
纱:
yarn config set "strict-ssl" false -g
npm:
npm config set "strict-ssl" false -g