firebase-tools:6.9.2
Platform:Windows
With 6.9.2 I try to emulate functions locally and get this whenever I call a function:
`! Your requested "node" version "8" doesn't match your global version "10"
events.js:174
throw er; // Unhandled 'error' event
^Error: listen EACCES: permission denied C:UsersWorkAppDataLocalTempfirebase_emulator_invocation_10596.sock
at Server.setupListenHandle [as _listen2] (net.js:1253:19)
at listenInCluster (net.js:1318:12)
at Server.listen (net.js:1416:5)
at Function.listen (C:UsersWorkAppDataRoamingnpmnode_modulesfirebase-toolsnode_modulesexpresslibapplication.js:618:24)
at Promise (C:UsersWorkAppDataRoamingnpmnode_modulesfirebase-toolslibemulatorfunctionsEmulatorRuntime.js:359:46)
at new Promise ()
at C:UsersWorkAppDataRoamingnpmnode_modulesfirebase-toolslibemulatorfunctionsEmulatorRuntime.js:332:15
at Generator.next ()
at C:UsersWorkAppDataRoamingnpmnode_modulesfirebase-toolslibemulatorfunctionsEmulatorRuntime.js:7:71
at new Promise ()
Emitted 'error' event at:
at emitErrorNT (net.js:1297:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)`
This behaviour was not present in 6.8.0 and I just verified that 6.8.0 works.
I even reinstalled Windows to double check (don't worry, it was time to do it anyway).
Note that I'm running firebase tools as the administrator, so not sure where the permission denied error is coming from.
Also note that when I run a basic express server:
`const express = require('express')
const app = express()
const port = "c:tempf.sock"
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, () => console.log(Example app listening on port ${port}!))`
I get the same error.
The function should run.
The function crashes.
Same here. On my side, not working with 6.8.0 because I'm node 8 and it requires node 6
Thanks for the report @jkarst, looks like we've got a handful of Windows-exclusive issues. I'll dive into issues on there specifically today. Sorry for the inconvience, in the meantime feel free to npm install -g [email protected] to roll back to the old emulator.
I can confirm this is happening for me as well. Reverting to the previous version resolved the issue.
My stack trace is the same and I also have Node 10 installed instead of Node 8.
Same here with 6.9.2 on Windows and Node 10. Reverted back to 6.8.0.
Seeing the same issue. @epomatti how do you revert?
You should be able to downgrade via npm install --global [email protected] (drop the --global flag if you're not installing it globally).
Seeing the same issue. @epomatti how do you revert?
@brendanosborne run npm install -g [email protected]... all of 6.9.x releases are broken in some way until now, you have to go 6.8.0.
Thanks @epomatti and @ryanmeier - I'm back in business until this is resolved.
Alright, I've found a fix for this and will hopefully get it in for the 6.9.3 release this week!
Fix for this has been merged and will be included in the next release.
Seeing the same issue. @epomatti how do you revert?
@brendanosborne run
npm install -g [email protected]... all of 6.9.x releases are broken in some way until now, you have to go 6.8.0.
Thanks. Spent many hours on this, thinking it was my fault.
@vdGitAway I've upgraded to 6.10.0 and it is working for me until now. It fixed this bug and many others. Give it a try.
If you have any problems delete node_modules directory.
I also had to include the following dev dependency, otherwise the code would not run:
"devDependencies": {
"firebase-functions-test": "^0.1.6"
}
Since you're on it, run npm outdated and npm update too to get the latest versions for your dependencies.
I'm having this issue and I'm on 8.2.0
I am still seeing this issue as of today.
Windows 10
Node 10
latest firebase-tools
Most helpful comment
Fix for this has been merged and will be included in the next release.