404 Not Found: protobufjs@^5.0.0

141 views Asked by At

I'm trying to install firebase into my project as such:

>npm install -S firebase
npm ERR! code E404
npm ERR! 404 Not Found: protobufjs@^5.0.0

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/my_username/.npm/_logs/2018-05-30T03_26_22_054Z-debug.log

What is 404 Not Found: protobufjs@^5.0.0 and how do I fix this?

In the log I see this:

83 verbose stack Error: 404 Not Found: protobufjs@^5.0.0
83 verbose stack     at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
83 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
83 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
83 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
83 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
83 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
83 verbose stack     at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
83 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
83 verbose stack     at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
83 verbose stack     at runCallback (timers.js:649:20)
83 verbose stack     at tryOnImmediate (timers.js:622:5)
83 verbose stack     at processImmediate [as _immediateCallback] (timers.js:594:5)
1

There are 1 answers

0
etayluz On

Looks like this is a brand new issue with NPM: https://github.com/dcodeIO/protobuf.js/issues/1056

Here's a workaround: npm install --registry=https://registry.npm.taobao.org