NPM complains: Unable to verify the "the" "Certificate

Source: Internet
Author: User
Tags mirror website

NPM Install always complains: Unable to verify of the first certificate (unable to verify the primary certificate), check the discovery

As of February, 2017, NPM no longer supports its self-signed certificates.

February 27, 2017, NPM no longer supports self-signed certificates.

Because NPM install is going with the HTTPS protocol, a digital certificate is required to guarantee solution 1:

Canceling SSL authentication: NPM Config set Strict-ssl false

If it is not successful, replace the NPM source with a domestic mirror:
NPM Config Set Registry http://registry.cnpmjs.org/

NPM Config Set Registry http://registry.npm.taobao.org/

TAOBAONPM Mirror website: https://npm.taobao.org/ solution 2:

Upgrade: NPM Install Npm-g--ca=null
or NPM config set ca= ""

Recommended Use Method 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.