Skip to main content

The Fix: npm ERR! code SELF_SIGNED_CERT_IN_CHAIN [SOLVED]

npm ERR! code SELF_SIGNED_CERT_IN_CHAIN

npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN

npm ERR! request to https://registry.npmjs.org/gulp-cli failed, reason: self signed certificate in certificate chain

What does it even mean? How does one fix this? There are so much information, it's hard to parse what I'm supposed to do.

The Solution: Disable the Company VPN

This is not ideal and you should work in cooperation with your IT security operations to let them know what you are doing and why you need it.

It was reading this article: https://stackoverflow.com/questions/54611707/request-to-https-registry-npmjs-org-co-failed and the comments that finally clued me into our VPN causing the conflict. I previously did not have any issues but our company hired a new CISO who has been very active in hardening our corporate environment.

What didn't work:

  • gulp untrust-dev-cert
  • Removing package-lock.json file
  • Reinstall Node.js

What I wasn't going to try (and you shouldn't either):

  • npm config set strict-ssl false
SSL establishes a trust between you and the source. If you want to turn off that trust, you risk compromising your system to malware and attack by an impersonator taking advantage of that lack of trust. Don't do it.

Comments

Popular posts from this blog

How to Create and Use a SharePoint App Registration

SharePoint App Registrations are incredibly useful for unattended tasks to read or update SharePoint sites. It's similar to a user service account but more secure. They cannot be used as a user sign-in. They are used in custom applications or automated scripted processes. They are made even more secure with a certificate, in which case, they may only run from the machine that owns the certificate. SharePoint Things to Do with App Registrations Read data and write the data to another process Write CSV, text, or XML files Useful for data for to import into report software Writing the data to other APIs such as ERPs, Project software, or work authorization systems Changing the data Check the data based on a schedule. Update the data based on constraints Change permissions of items in a SharePoint list once an item is past due Work with partners and vendors to provide just-in-time, specific access to necessary data Simple Process Create the application either in SharePoint or in App Re...

Pronouns Available on Microsoft Outlook and Teams Profile Cards

I'm really pleased with the feature in Microsoft 365 that lets you add pronouns to the profile card! Pronouns are used to replace someone's name in a sentence, such as "she", "he", or "they". Adding pronouns to your profile can help you express your identity and show respect for others. It can also improve communication and trust among your colleagues in a hybrid multicultural workplace. Never set pronouns on behalf of someone else. To turn on pronouns: You need to be able to access the settings in your organizational settings for security and privacy Settings - Microsoft 365 admin center Select Pronouns Settings - Microsoft 365 admin center Check "Turn on and allow pronouns" To add pronouns to your profile: Open your profile card in Teams or Outlook on the web. On your profile card, select + Pronouns or the pronouns listed below your name. To add or change your pronouns, select from the examples (only available in English), or enter your...