event-gateway-example
event-gateway-example copied to clipboard
spawn sle ENOENT
Hello I get an error while executing sls run on services/users. spawn sle ENOENT Thanks
thanks reporting! do mind sharing your operating system, node and npm version?
Sure I am using Node 7.1.0 sls 1.20.2 npm 4.0.5 windows 7 service pack 1 Thanks
Same thing. Node v6.10.2 sls 1.20.2 npm 3.10.10 windows 10 x64
Thanks for letting me know! Will give it a try asap and get back to you.
@plfx can you give this a try with your Windows machine?
I had a similar issue and raised it here https://github.com/serverless/event-gateway-example/issues/25. Can close though as it's basically this.
This is because of the process spawning code in manageLocalEmulator.js (also in eventGatewayInstalled.js, installLocalEmulator.js, localEmulatorInstalled.js, manageEventGateway.js in the "run" plugin) and occurs due to a known problem with the use of child_process on Windows. I fixed it by changing the code to use the widely used cross-spawn npm library (https://github.com/IndigoUnited/node-cross-spawn), which is a drop-in replacement that provides correct cross-platform handling of such issues.
The changes a are on my fork (https://github.com/jawish/serverless/commit/5aca3abfad24f4f3a18b469969664fb5b75b01eb). Shall I make a pull request to merge the fix?
still seems to be an issue on my windows machine, any further word on this?
Same issue here:
Your Environment Information ----------------------------- OS: win32 Node Version: 9.2.0 Serverless Version: 1.24.1
Same issue. OS: win32 Node Version: 8.9.4 Serverless Version: 1.26.1
Same issue : OS: win32 Node Version: 8.11.1 Serverless Version: 1.27.3