I am using nvm to switch between 4.4.3 and 12.14.1 node version.
After i Switched to version 12.14.1 and tried to install expo and run react-native project as stated here.
npm install -g expo-cli
expo init
npm start
But while running npm start i am getting the below error.
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz failed, reason:
self signed certificate in certificate chain
I followed the step as stated here.
So i ran the following command.
npm config set registry http://registry.npmjs.org/
But i am still getting the same error.Please help!
Also i dont intend to disable strict-ssl as stated
npm set strict-ssl false
Use following command to disable strict ssl-mode and you will not get the error:
npm set strict-ssl false
Related
I am trying to install firebase but no matter what I do I keep getting this Error:
npm ERR! code ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
npm ERR! errno ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC
npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/#firebase%2Fapp: 39732:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:677:
I get this error after running npm i firebase or npm i --save firebase. It doesn't happen when I install any other package
I have tried all sorts of commands like npm cache clear --force, npm config set strict-ssl false, npm config set registry http://registry.npmjs.org, no combination of them seams to fix it.
I am using npm version 8.5.4 and node version v16.14.0
When I run npm config get cafile it outputs null
I tried searching for what a certificate means without any success.
Any help is greatly appreciated
If you are using windows, search "services" in the start menu, then check the "OpenSSH Authentication Agent" service. If the startup type is "disabled", select "automatic (delayed startup)". then restart the computer and try to install firebase. this solved my problem.
please try this command : npm i --save firebase -d it helped me.
I'm trying to install Electron in NPM , using this command:
npm install --save-dev electron
But I always got :
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! RequestError: read ECONNRESET
I configured the file .npmrc with following configs:
registry=http://registry.npmjs.org/
strict-ssl=false
proxy=http://mycompany.proxy:8080/
https-proxy=http://mycompany.proxy:8080/
But didn't resolve. I tried follow this guide: https://www.electronjs.org/docs/latest/tutorial/installation#proxies. So added ELECTRON_GET_USE_PROXY but same error.
I'm running npm within a MacOS BigSur.
Iam new at angular While Trying to execute this command
ng new my-dream-app
I got The error below
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
Full screen of error details
My npm version 6.14.4
and my Node version v13.13.0
I tried to install and uninstall node and force clean cache and change Node version but all of this not work
If you have npm version 5 or above, try this first:
$ sudo npm cache verify
Otherwise:
$ sudo npm cache clean --force
I am trying to install electron on my ubuntu 16.04, i already have a working nodejs and npm. But suddenly I am unable to install modules by type:
sudo npm install electron
Below is the response am getting:
npm WARN registry Unexpected warning for https://registry.npmjs.org/:
Miscellaneous Warning EAI_AGAIN: request to
https://registry.npmjs.org/electron failed, reason: getaddrinfo
EAI_AGAIN registry.npmjs.org:443
npm WARN registry Using stale package data from
https://registry.npmjs.org/ due to a request error during
revalidation.
> electron#1.7.10 postinstall
/home/arthur/Documents/Programming/Electron/node_modules/electron
> node install.js
`/home/arthur/Documents/Programming/Electron/node_modules/electron/
install.js:48
throw err
^
Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TLSWrap.onread (net.js:615:25)
npm WARN y#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron#1.7.10 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron#1.7.10 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/arthur/.npm/_logs/2017-12-19T10_25_52_312Z-
debug.log
The issue is related to proxy configuration. Based on this answer, you can try the following.
First, try to remove if there exists your initial config:
npm config rm proxy
npm config rm https-proxy
And optionally if needed, try to set your proxy config
npm config set proxy proxy-url
npm config set https-proxy proxy-url
I tried everything but it seems I was using CENTOS which allowing me to install electron. I got help from FlashJonas: and tried installing electron again and it was installed as expected.
sudo npm install electron -g --verbose --unsafe-perm=true
Removing the proxy and https-proxy worked for me, just in case there is another person with a similar situation.
just enter the following in your terminal:
npm config rm proxy
npm config rm https-proxy
Do Any of the following. It Work for me.
Change Internet Connection.
Delete all electron file and then install npm insatll electron.
Try to install old version of electron.
This Error is because it can't able to download "electron-v11.2.1-win32-x64.zip" file. So Change Internet Connection it work for me.
I am behind a corporate proxy and had similar issues. None of the options above helped. In the end, I followed the instructions below to reconstruct the electron cache manually, so that it will not have to hit the network to download the binaries:
https://www.electronjs.org/docs/v14-x-y/tutorial/installation#custom-mirrors-and-caches
Basically I used a personal laptop (i.e. not behind the proxy) to install the latest electron on some test app, and then copied the %LOCALAPPDATA%\electron\Cache folder from my personal to the corporate laptop. Everything worked fine.
I need to install Express Framework for my application.
This is the error which I am obtaining. I tried to set Environment varaibales for my computer towards npm as http://username:password#proxy:port for both http and https.
Also, I have tried the code such as
npm config set proxy http://username:password#proxy:port -g
npm config set https-proxy http://username:password#proxy:port -g
npm config set strict-ssl false.
Even then I am getting the below error.
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! unable to verify the first certificate
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
Any help regarding installing Express Framework would be appreciated.
I have also faced same problem, but your last option i.e.
npm config set strict-ssl false worked for me.
after run this command in command prompt I installed express framework with following command:
npm install -g express-generator
Even I got the same error while installing angular cli...
I have used the command "npm config set strict-ssl false" in cmd and then installed using npm install -g #angular/cli...It worked...Thanks
npm config set strict-ssl false should fix it.
In my case it was in a docker environment and I did not copied the .yarnrc that included the sstrict-ssl false directive to the image in the build phase.
Issue:
>npm install
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/#webassemblyjs/ieee754/-/ieee754-1.7.6.tgz failed, reason: unable to verify the first certificate
Solution:
npm install worked after executing this command:
npm config set strict-ssl false