Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[npm]npm ERR! code SELF_SIGNED_CERT_IN_CHAIN #53

Open
cherishman2005 opened this issue Jan 14, 2023 · 3 comments
Open

[npm]npm ERR! code SELF_SIGNED_CERT_IN_CHAIN #53

cherishman2005 opened this issue Jan 14, 2023 · 3 comments

Comments

@cherishman2005
Copy link
Owner

 npm install
npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/babel-plugin-istanbul failed, reason: self signed certificate in certificate chain
npm WARN registry Using stale package data from http://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://registry.npmjs.org/@ant-design%2Ficons failed, reason: self signed certificate in certificate chain

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-01-14T16_08_12_975Z-debug.log
@cherishman2005
Copy link
Owner Author

npm set strict-ssl false

@cherishman2005
Copy link
Owner Author

yarn config set "strict-ssl" false

@cherishman2005
Copy link
Owner Author

cherishman2005 commented Jan 16, 2023

yarn config set "strict-ssl" false -g

or

npm config set "strict-ssl" false -g
yarn config set registry https://registry.npmjs.org

https://stackoverflow.com/questions/64125554/an-unexpected-error-occurred-https-registry-yarnpkg-com-react-unable-to-get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant