javascript
Building For Different OS
For example, building for linux for a lambda function, when I'm on a Mac:
npm_config_platform=linux npm_config_arch=x64 npm install --verbose
If the above doesn't work, could use a docker container to build it, then copy back.
# reminders for docker commands: docker ps docker exec -it <container> bash # copy local dir to container: docker cp /path/to/myapp <container-name-or-id>:/app # copy container directory back to local: docker cp <container-name-or-id>:/app /path/to/myapp