-
Notifications
You must be signed in to change notification settings - Fork 406
Closed
Labels
Description
[REQUIRED] Step 2: Describe your environment
- Operating System version: Android 11 / One UI 3.1 / Linux 4.19.113-21564965 / Termux 0.113
- Firebase SDK version: 8.6.7
- Firebase Product: admin 9.9.0
- Node.js version: 14.15.4
- NPM version: 7.17.0
- pnpm version: 6.7.4
- yarn: 1.22.10
- yarn: 1.23.0-20210103.1434
- yarn: 2.4.2
- yarn: 3.0.0-rc.5
[REQUIRED] Step 3: Describe the problem
npm failed to install firebase-admin, prompting search for alternatives pnpm and yarn. Of 5 package managers, 1 installs, 2 have warnings, 2 fail to install.
- npm fails to install
- pnpm has warnings
- yarn v1 installs without errors or warnings
- yarn v2 has warnings
- yarn v3 has too many errors, fails to install
Are there any other node package managers to try?
npm error / failure:
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://github.com/npm/cli/issues>
npm ERR! A complete log of this run can be found in: npm ERR! /data/data/com.termux/files/home/.npm/_logs/2021-06-12T00_08_10_696Z-debug.log
pnpm warning:
WARN firebase-admin > @firebase/database: @firebase/[email protected] requires a peer of @firebase/[email protected] but none was installed.
yarn2 warnings:
➤ YN0002: │ @firebase/database@npm:0.10.4 doesn't provide @firebase/app-types (pb2b5c), requested by @firebase/auth-interop-types
See issues/pulls related to this.
#614 (comment)
#973 (comment)
#1241 (comment)
#1250 (comment)
firebase/firebase-js-sdk#3529 (comment)
Steps to reproduce:
- Android 7+ (API 24)
- Install F-Droid (Termux not using Google Play anymore)
- Install Termux v0.113 or later
pkg updatepkg i nodejsnpm i -g pnpmmkdir app-foo; cd app-foonpm init -ynpm add firebase-adminrm -rf node_modules package.json ~/.npm/_logs/*.log # clean-up after done inspectingpnpm init -ypnpm add firebase-adminrm -rf node_modules pnpm-lock.yaml package.jsonpkg i -g yarn # npm i -g yarn fails, cb() never called!, so install yarn as a system packageyarn init -yyarn set version berry; yarn set version classic # toggle from default to berry v2/3 to classic to get v1.23.0yarn add firebase-adminrm -rf .yarn* yarn.lock node_modules package.jsonyarn init -yyarn set version berry; yarn set version latest # newest v2 releaseyarn add firebase-adminrm -rf .yarn* yarn.lock .pnp.js package.jsonyarn inityarn set version 3.0.0-rc.5 # only works if set to berry, won't work in classicyarn add firebase-admin # too many errors, run away...
Relevant Code:
echo "See above. ☝🏻 👀"