-
Notifications
You must be signed in to change notification settings - Fork 392
pnpm and yarn2 warning auth-interop-types requires peer app-types #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found a few problems with this issue:
|
Works fine with NPM as far as I can tell:
Your error message states that it's a bug in NPM itself. Have you tried a different version of NPM? |
You tried with what version of node and npm and on what platform? Very specifically, I am using Android 11, F-Droid, Termux v0.113, nodejs v14.15.4, npm 7.17.0. I've filed issues with npm v7 giving this same catch-all cb() never called error on several other packages, including firebase proper. No response as of yet. Downgrading to npm v6.14.13 (latest-6) allows firebase-admin to install. v7.0.0 has the error. Not sure which change in between npm v6 and v7 may have caused the problem. But can the issue of the auth-type warning be completely ruled out as a possible cause? Surely, the solution to use firebase-admin isn't to rely upon an outdated version of npm?
File 2021-06-14T23_56_32_105Z-debug.log :
|
Tested on both Mac and Linux, with multiple versions of Node.js and NPM. Here's with NPM 7 on Linux:
We don't test on platforms like Android and Termux. According to NPM download statistics, |
Closing this as the reported issue cannot be reproduced in a general NPM environment. |
[REQUIRED] Step 2: Describe your environment
[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.
Are there any other node package managers to try?
npm error / failure:
pnpm warning:
yarn2 warnings:
See issues/pulls related to this.
#614 (comment)
#973 (comment)
#1241 (comment)
#1250 (comment)
firebase/firebase-js-sdk#3529 (comment)
Steps to reproduce:
pkg update
pkg i nodejs
npm i -g pnpm
mkdir app-foo; cd app-foo
npm init -y
npm add firebase-admin
rm -rf node_modules package.json ~/.npm/_logs/*.log # clean-up after done inspecting
pnpm init -y
pnpm add firebase-admin
rm -rf node_modules pnpm-lock.yaml package.json
pkg i -g yarn # npm i -g yarn fails, cb() never called!, so install yarn as a system package
yarn init -y
yarn set version berry; yarn set version classic # toggle from default to berry v2/3 to classic to get v1.23.0
yarn add firebase-admin
rm -rf .yarn* yarn.lock node_modules package.json
yarn init -y
yarn set version berry; yarn set version latest # newest v2 release
yarn add firebase-admin
rm -rf .yarn* yarn.lock .pnp.js package.json
yarn init
yarn set version 3.0.0-rc.5 # only works if set to berry, won't work in classic
yarn add firebase-admin # too many errors, run away...
Relevant Code:
The text was updated successfully, but these errors were encountered: