Closed markenzie closed 1 week ago
Hello! Thanks for reporting this. The build error is due to mkdir
on windows now supporting the -p
argument. There are a couple of solutions to it.
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
target
directory and edit the build script to be.
"build": "npx webpack --mode=production && spin js2wasm -o target/kv.wasm dist/spin.js",
The other issue reported on login
and cloud
is similar to one reported on Discord yesterday. This seems to be due to antivirus blocking the execution of the cloud
plugin (spin deploy
is aliased to spin cloud deploy
). I think there is a possibility that the js2wasm
plugin might be blocked as well. Allowing both the cloud
and js2wasm
binary to execute should resolve that.
This was fixed using mkdirp
package from npm
Hi, I am following the getting started guide and I may be doing something wrong.
From my issues, it seems due to this line
https://github.com/fermyon/spin-js-sdk/blob/c76bec67a15a2dfaf206bf2da3ed99a5c487c714/examples/javascript/kv/package.json#L7
On Windows this creates a -p folder as that is not a valid option.
This puts me into a failed state when trying to build or deploy for a second time:
Just so you guys are aware. I haven't entirely figured out the correct process to make this work for me either. It appears even commands like
spin login
give the same error as spin deploy above, both inside and outside of any working directory.Am I doing something really wrong here?