569532 (4) [Avatar] Offline
#1
Another windows question,
I got stuck in the CI/CD chapter because of the OS. It doesn't seem possible to run the code and this would mean that I'd have to install Ubuntu (for example) to get the code to work.

I might do that in the future, but would be great to find a faster solution on windows?
Yan Cui (46) [Avatar] Offline
#2
Try installing the Windows Subsystem for Linux (WSL), alternatively, maybe create an equivalent shell script for windows seeing as the build script does only two things - npm install, and 'sls deploy'.

Another thing you can try is bypassing the build script entirely and just use NPM scripts instead. Add a NPM script - e.g. "deploy": ... - to run npm install and 'sls deploy' etc. and use that to drive your build steps instead.