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.

Update to 8.4.3 failed and corrupted existing version

See original GitHub issue

**Platform:**OS X 10.9.5 (13F1911)

[REQUIRED] Test case:

Been prompted by the npm to update the firebase-tools: npm install -g firebase-tools

[REQUIRED] Steps to reproduce:

$sudo npm install -g firebase-tools

[REQUIRED] Expected behavior:

the firebase-tools should be updated to the newest v8.4.3

[REQUIRED] Actual behavior

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 /usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/lib/bin/firebase.js

protobufjs@6.9.0 postinstall /usr/local/lib/node_modules/firebase-tools/node_modules/protobufjs node scripts/postinstall storage-engine@3.0.7 postinstall /usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine node ./compatibility/detect.js

fs.js:115 throw err; ^

Error: EACCES: permission denied, open ‘/usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/index.js’ at Object.openSync (fs.js:439:3) at Object.writeFileSync (fs.js:1190:35) at /usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/detect.js:35:15 at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/storage-engine/lib/compatibility/detect.js:45:3) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) npm WARN ws@7.3.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. npm WARN ws@7.3.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! storage-engine@3.0.7 postinstall: node ./compatibility/detect.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the storage-engine@3.0.7 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:

After this error I’ve lost my previous firebase-tools setup completely: $ firebase --version bash: firebase: command not found

This is the log file: … 14621 timing action:postinstall Completed in 610ms 14622 verbose unlock done using /Users/pavel/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 14623 timing stage:rollbackFailedOptional Completed in 2406ms 14624 timing stage:runTopLevelLifecycles Completed in 34054ms 14625 warn ws@7.3.0 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself. 14626 warn ws@7.3.0 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself. 14627 verbose stack Error: storage-engine@3.0.7 postinstall: node ./compatibility/detect.js 14627 verbose stack Exit status 1 14627 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 14627 verbose stack at EventEmitter.emit (events.js:189:13) 14627 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 14627 verbose stack at ChildProcess.emit (events.js:189:13) 14627 verbose stack at maybeClose (internal/child_process.js:970:16) 14627 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14628 verbose pkgid storage-engine@3.0.7 14629 verbose cwd /Users/pavel/IdeaProjects/AWS_CodeCommit/google-assistant-tasks 14630 verbose Darwin 13.4.0 14631 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “i” “-g” “firebase-tools” 14632 verbose node v10.15.1 14633 verbose npm v6.14.5 14634 error code ELIFECYCLE 14635 error errno 1 14636 error storage-engine@3.0.7 postinstall: node ./compatibility/detect.js 14636 error Exit status 1 14637 error Failed at the storage-engine@3.0.7 postinstall script. 14637 error This is probably not a problem with npm. There is likely additional logging output above. 14638 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:15
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
samtsterncommented, Jun 22, 2020

Ok winston has released version 3.3.2 which I think should fix everything as long as you reinstall the Firebase CLI. Thanks everyone for your patience, that was a wild ride!

3reactions
moryapantcommented, Apr 15, 2021

how it is fixed? can someone please explain?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cisco Nexus 7000 Series NX-OS Software Upgrade and ...
Cisco Nexus 7000 Series NX-OS Software Upgrade and Downgrade Guide, Release 8.x -Quick Start Guide: Cisco Nexus 7000 Series NX-OS Software Upgrade and ......
Read more >
Update your Apple Watch - Apple Support
Update your Apple Watch. You can get the latest version of watchOS directly on your Apple Watch, or use your iPhone to update....
Read more >
VMware Site Recovery Manager 8.4 Release Notes
Otherwise, upgrade might fail. Migration to Site Recovery Manager Virtual Appliance. You can migrate your Site Recovery Manager 8.3.x instance ...
Read more >
Resolve migration failures | Kibana Guide [8.5] - Elastic
Unlike previous versions, Kibana 7.12.0 and later does not require deleting indices to release a failed migration lock. If upgrade migrations fail ......
Read more >
PVCS Version Manager 8.6.3 Release Notes - Micro Focus
For information on installing and using the current release of Version Manager, ... 2.3.2 Web Client Agent fails to install if Operating System...
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