You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using this plugin on Windows and it doesn't work due to hard-coded CLI commands that the plugin tries to execute (whose syntax is Linux-specific). Here's the error I get:
Error:
Error: Command failed: mkdir -p /tmp/serverless-esbuild-bundle-analyzer/my-lambda.zip/1655816493977
The syntax of the command is incorrect.
at ChildProcess.exithandler (node:child_process:398:12)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
On Windows, mkdir does not accept a -p parameter (syntax is mkdir [target]). But you should be using Nodes mkdir command instead.
The text was updated successfully, but these errors were encountered:
Another problem is the plugin calls "unzip" CLI command, this does not exist on Windows at all and should be replaced with a zip library (preferably the same that Serverless Framework is using, to avoid introducing an additional dependency)
I tried using this plugin on Windows and it doesn't work due to hard-coded CLI commands that the plugin tries to execute (whose syntax is Linux-specific). Here's the error I get:
On Windows, mkdir does not accept a -p parameter (syntax is
mkdir [target]
). But you should be using Nodes mkdir command instead.The text was updated successfully, but these errors were encountered: