-
Notifications
You must be signed in to change notification settings - Fork 929
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
Cant call firebase at all, always returns TypeError: dns.setDefaultResultOrder is not a function #4580
Comments
Solved by updating node to v16.15.0 LTS (was 16.something before). |
I'm still seeing this error even though I'm on node v16.15.0 LTS. Any other changes that you made @readyiman ? |
@timstoute I'm pretty sure I didn't do anything else. Just download node from it site then just install it. Maybe, just maybe, had you try |
Our minimum node requirement is in our package.json (which should be enforced by the CLI as well), but this made me realize that I'd ask @readyiman - how had you installed the CLI and node? I don't have a good windows flow myself, so it's hard for me to test and verify fixes sometimes. :) |
Just casual one. I install node directly from it site https://nodejs.org/en/, And I install CLI from npm |
This works for me. |
Hello. Same issue here. In my case, Firebase on CloudShell:
As said before, looks solved upgrading node.js (I've upgraded to v16.15.0). |
$ node -v
v14.15.0
$ nvm use 14.18
Now using node v14.18.2 (npm v6.14.15)
$ npm run deploy I found I had to increase my Node version from |
This works for me on mac m1! |
[REQUIRED] Environment info
firebase-tools: 11.0.0
Platform: Windows
[REQUIRED] Test case
npm update from version 10.9.2
[REQUIRED] Steps to reproduce
npm update from version 10.9.2
[REQUIRED] Expected behavior
Can call firebase
[REQUIRED] Actual behavior
Any firebase call returns to this:
C:\Users\Redi\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\portUtils.js:9
dns.setDefaultResultOrder("ipv4first");
^
TypeError: dns.setDefaultResultOrder is not a function
at Object. (C:\Users\Redi\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\portUtils.js:9:5)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object. (C:\Users\Redi\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\registry.js:6:19)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
The text was updated successfully, but these errors were encountered: