I'm trying to implement this plugin called Share Button from npm my running https://github.com/carrot/share-button. However after doing that and waiting around 5mins I get the following output:
npm ERR! fetch failed https://registry.npmjs.org/i/-/i-0.3.2.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 504
⸨ ░░░░░░░░░░░░░░⸩ ⠇ fetchMetadata: WARN retry will retry, error on last attempt: Error: fetch failed with status code 504
Does anyone know why this would happen and a way to get round it? Thanks
If you tried
npm i --save-dev share-button
like me. Try using the github repo like that
npm install --save-dev carrot/share-button
That works without an error on my machine :)
Try to execute the command below:
npm config set registry http://registry.npmjs.org/
That will get packages npm install over HTTP.
Sometimes you also get a 504 error if you have an incompatible npm version.
npm install -g npm#6.13.4
The npm versions v3, v6 and v8 are partly incompatible. So just try to install a different npm version.
Related
While running npm i on server after adding a package, it throws the error below.
While resolving: eslint-config-airbnb-base#13.1.0 npm ERR! Found: eslint#6.0.1
what could be the possible reason? I am a bit new in Nodejs.
I added package-lock.json in the code and tried to upload it and run the npm i command to install the packages, previously It wasnt throwing any such error.
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.
This is a rather obscure issue. I have an Angular app that will be running through Codeship for CI. However, when it comes time to run npm install on the Codeship box, npm gives back
-npm ERR! fetch failed https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-2.4.1.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502
\npm ERR! fetch failed https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-2.4.1.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 502
\npm ERR! fetch failed https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-2.4.1.tgz
npm ERR! Linux 4.2.0-38-generic
npm ERR! argv "/home/rof/.nvm/versions/node/v4.1.1/bin/node" "/home/rof/.nvm/versions/node/v4.1.1/bin/npm" "install"
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! fetch failed with status code 502
This was quite strange, since the npm install worked just fine on my box. My first instinct was that it had to be an issue with the NPM repository, so I grabbed the url for the package(https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-2.4.1.tgz) and threw it into a new Chrome tab. Sure enough, the archive downloaded almost instantly. I was confused by this, so I tried the Codeship build again, but got the same results. I decided to SSH into the Codeship box to see if I could access it. I ran
curl https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-2.4.1.tgz
and as I expected I got the 502 error. However, when I ran the same command from the terminal on my machine, I got the same result, even though the npm install ran perfectly for me. I wasn't able to find anyone else having this type of an issue, and a 502 seems like a very rare code for the NPM registry to be returning. Any ideas?
This is a problem with the registry.npmjs.org in some regions.
Here is issue:
https://github.com/npm/npm/issues/13284
Try to keep one registry inside .npmrc file, only one of them works.
The order of registry also does matter. Also try to set:
npm config delete proxy
npm config delete https-proxy
to clean proxy inside terminal.
I'm seeing the same issue via npm install on Ubuntu 14 running on AWS
curl https://registry.npmjs.org/combine-lists/-/combine-lists-1.0.0.tgz
returns 502 Bad Gateway from the ubuntu server, but works fine from local client
There's an open issue at NPM for this:
https://github.com/npm/npm/issues/13284
NPM just acknowledged the issue and they are working on it. Your can track the status at below link.
http://status.npmjs.org
I got this error while publishing my package on npm. After banging my head against the wall for a few hours, I realized I was on mobile hotsopt. I switched to wifi and bang there was my package on npm!
Running npm install redux gives the error:
npm ERR! fetch failed https://registry.npmjs.org/lodash-es/-/lodash-es-4.6.0.tgz
npm WARN retry will retry, error on last attempt: Error: fetch failed with status code 404
I'm thinking its something with lodash-es because I can't install that either. Every other package works fine though.
I am getting the same error. I got a 404 and a 502 status code. Sounds like there must be an issue with the hosting of the package on npm. I am also trying to install redux via npm.
I temporarily fixed it by changing the version of lodash-es in my package.json
"lodash-es": "~4.0.0"
Error 404 signifies that the required package is not available with the current version of npm. You should try updating the npm itself.
>$ sudo npm install npm -g
>$ password:
sudo might be optional in your case.
I have windows 8.1 64 Bit. I have installed node.js but when I run this command
npm install -g cordova ionic
it gives me these error.
npm ERR! fetch failed https://registry.npmjs.org/escape-html/-/escape-html-1.0.1
.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 185.3
1.17.162:443
npm ERR! fetch failed https://registry.npmjs.org/colors/-/colors-1.0.3.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 185.3
1.17.162:443
I have googled a lot but could not find a solution. What is the solution to this?
Thanks
I had the same problem.
The solution was to set the proxy settings
npm config set proxy http://user:password#url:port
npm config set https-proxy http://user:password#url:port