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.

Getting 404 when installing using npm

See original GitHub issue

Description

Describe your issue here.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.

Bug Report

Reproducible in:

node version: using node v8.9.4 (npm v5.6.0)

OS version(s): Mac Sierra@10.12.6

Actual result:

What actually happened Doing npm i @slack/client results in following npm error:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   '@slack/client' ]
2 info using npm@5.4.2
3 info using node@v8.5.0
4 verbose npm-session ae5525794e702e48
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 404 https://registry.npmjs.org/@slack%2fclient 575ms
8 silly fetchPackageMetaData error for @slack/client@latest 404 Not Found: @slack/client@latest
9 verbose stack Error: 404 Not Found: @slack/client@latest
9 verbose stack     at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
9 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
9 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
9 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
9 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
9 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
9 verbose stack     at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
9 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
9 verbose stack     at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
9 verbose stack     at runCallback (timers.js:781:20)
9 verbose stack     at tryOnImmediate (timers.js:743:5)
9 verbose stack     at processImmediate [as _immediateCallback] (timers.js:714:5)
10 verbose cwd /Users/gunjanpandya/novaDev/slack_app/card-manager-api
11 verbose Darwin 16.7.0
12 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@slack/client"
13 verbose node v8.5.0
14 verbose npm  v5.4.2
15 error code E404
16 error 404 Not Found: @slack/client@latest
17 verbose exit [ 1, true ]

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gunjpancommented, Jan 30, 2018

@aoberoi Thanks for a timely response! Appreciate that, have a great day! 👍

1reaction
gunjpancommented, Jan 30, 2018

It’s working now, I had my enterprise creds in global .npmrc file. 🙈

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing npm package fails with 404 - node.js - Stack Overflow
It is an network error , check your network connection and try to install it again.
Read more >
Surviving the npm ERR! 404 with private packages
How to fix a common issue when installing private packages with npm · install latest npm version · login (if you are downloading...
Read more >
Getting NPM Error 404 for every package i try to install. - Reddit
For example, trying the install Google's @angular/cli : npm install @angular/cli -g npm ERR! code E404 npm ERR! 404 Not Found - GET...
Read more >
Getting 404 Registry returned when trying to run npm install #15
Simply cloned your repo and ran npm install and got the error: npm ERR! 404 Registry returned 404 for GET on https://npm-proxy.fury.io/C__ ...
Read more >
Why am I getting 404 for some npm packages? - JFrog
However, when working with the npm public registry, HEAD requests will sometimes trigger a 404 error response even though the requested ...
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