question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng update failes to latest version 9.1.0: unable to get local issuer certificate

See original GitHub issue

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • [x ] update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 9.0.7

Description

Error fetching metadata for ‘@angular/cli’: request to https://proget.mydomain.de/npm/FEED/@angular%2Fcli failed, reason: unable to get local issuer certificate

image

🔬 Minimal Reproduction

🌍 Your Environment

Attention: This is the projects local version


C:\lvs\git\ng-viewer [master ↑1]> ng --version                                                                                                                                                        Your global Angular CLI version (9.1.0) is greater than your local
version (8.3.25). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 8.3.25
Node: 12.16.1
OS: win32 x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.25
@angular-devkit/build-angular     0.803.25
@angular-devkit/build-optimizer   0.803.25
@angular-devkit/build-webpack     0.803.25
@angular-devkit/core              7.3.9
@angular-devkit/schematics        7.3.9
@angular/cdk                      8.2.3
@angular/cli                      8.3.25
@ngtools/webpack                  8.3.25
@schematics/angular               8.3.25
@schematics/update                0.803.25
rxjs                              6.5.4
typescript                        3.5.3
webpack                           4.39.2

Anything else relevant?

Well i’am very disappointed to have this error over and over again, since Angular 5 on any version this appears again and again. Why this cannot be fixed forever!!!

Possible Fixes

A quick fix from the cli perspective would be the downgrade of pacote back to @<10.

  • The CLI could convert the strict-ssl setting to strictSSL

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:11

github_iconTop GitHub Comments

1reaction
bridziuscommented, Mar 26, 2020

The newest version of @angular/cli has an updated version of pacote@11.1.4, which, in turn has an updated version of npm-registry-fetch - ^4.0.0 to ^8.0.0.

The external API of npm-registry-fetch has changed between @6 and @7.0.0, where instead of strict-ssl (the .npmrc value as defined in npm documentation) it now expects strictSSL.

Since ng update just passes the contents of your .npmrc file into pacote, which strips the strict-ssl param from the config - npm-registry-fetch get this parameter straight from your .npmrc by itself sends it to npm-registry-fetch, but it doesn’t understand it - since it is strict-ssl, not strictSSL. EDIT: (pacote actually passes the param through to npm-registry-fetch).

This is a fix that should happen in npm-registry-fetch ideally (the library should treat strict-ssl and strictSSL similarly)

A very quick fix you can do yourself, is addingstrictSSL=false into your .npmrc file. A quick fix from the cli perspective would be the downgrade of pacote back to @<10.

EDIT: Quick note: Previously, if you hadn’t set strict-ssl=true explicitly, npm-registry-fetch would treat it as strict-ssl=false. The default was lately changed from false to true, since npm-registry-fetch moved away from the figgy-pudding lib for cascading configs.

0reactions
angular-automatic-lock-bot[bot]commented, May 5, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install error - unable to get local issuer certificate
Open up dev tools and go to Security-> View Certificate. Check Certification path and make sure your at the top level certificate, if...
Read more >
npm install error - unable to get local issuer certificate
This usually occurs when the outbound connection on port 443 has been blocked and can be resolved by running the command below :....
Read more >
Bug listing with status RESOLVED with resolution TEST- ...
Bug:233 - "Emacs segfaults when merged through the sandbox." status:RESOLVED resolution:TEST-REQUEST severity:critical · Bug:3888 - "yenta_socket module not ...
Read more >
PAN-OS 9.1.11 Addressed Issues
Fixed an intermittent issue where traffic ingressing through a VPN tunnel failed to match predict session, which resulted in child sessions failing. PAN-167637....
Read more >
How To Update Angular CLI To Latest Version
First Update your Angular app to Angular 9. Then use ng update command. Angular CLI version check. Before updating check the Angular version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found