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:
- Created 3 years ago
- Reactions:15
- Comments:20 (7 by maintainers)
Ok
winston
has released version3.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!how it is fixed? can someone please explain?