DEV Community

Discussion on: Puppeteer in an AWS Lambda Function Part 2

Collapse
 
akash8663 profile image
Abrar.Akash • Edited

The syntax of the command is incorrect.

    "create-layer": "pushd ../../ && rm -rf layer.zip && popd && npm i && cd ../ && zip -r ../layer.zip *"
Enter fullscreen mode Exit fullscreen mode
Collapse
 
akash8663 profile image
Abrar.Akash

Should this be a different command for windows

Collapse
 
gerybbg profile image
Gergana Young

I think the command would be quite different in Windows since most parts of it are unix based commands. Unfortunately I don't have a Windows machine to try it on. If you do figure it out it would be great if you posted it here for others that might need it.