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
🔬 Minimal Reproduction
- Install and configure a local npm repository, e.g. ProGet
- npm set strict-ssl false
- npm set cafile C:\YourCARoot.cer
- npm set registry https://my-registry.internal-proget.de/npm/FEED
- ng update @angular/cli @angular/core
🌍 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
- Researched from @bridzius
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:
- Created 3 years ago
- Reactions:3
- Comments:11
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The newest version of
@angular/cli
has an updated version ofpacote@11.1.4
, which, in turn has an updated version ofnpm-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 ofstrict-ssl
(the.npmrc
value as defined in npm documentation) it now expectsstrictSSL
.Since
ng update
just passes the contents of your.npmrc
file intopacote
, whichstrips thesends it tostrict-ssl
param from the config -npm-registry-fetch
get this parameter straight from your.npmrc
by itselfnpm-registry-fetch
, but it doesn’t understand it - since it isstrict-ssl
, notstrictSSL
. EDIT: (pacote
actually passes the param through tonpm-registry-fetch
).This is a fix that should happen in
npm-registry-fetch
ideally (the library should treatstrict-ssl
andstrictSSL
similarly)A very quick fix you can do yourself, is adding
strictSSL=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 asstrict-ssl=false
. The default was lately changed fromfalse
totrue
, sincenpm-registry-fetch
moved away from thefiggy-pudding
lib for cascading configs.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.