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 want to run demoparser both locally and on aws Lambda, and I have a hacky solution. i'm wondering if it's possible to solve this in a more graceful manner.
current setup
local development: macos arm64 using @laihoe/demoparser2-darwin-arm64
aws lambda: linux arm64 requiring @laihoe/demoparser2-linux-arm64-gnu
current solution
to add the linux binary to my package.json from my mac, i have to run:
is there a way to handle this more elegantly? for example, other packages like ffmpeg-static handle multiple platforms seamlessly without requiring --force flags or platform-specific installations.
is it possible to bundle multiple platform binaries in a single package?
The text was updated successfully, but these errors were encountered:
hi,
i want to run demoparser both locally and on aws Lambda, and I have a hacky solution. i'm wondering if it's possible to solve this in a more graceful manner.
current setup
@laihoe/demoparser2-darwin-arm64
@laihoe/demoparser2-linux-arm64-gnu
current solution
to add the linux binary to my package.json from my mac, i have to run:
The
--force
flag is required to bypass this error:53 verbose stack Error: Unsupported platform 53 verbose stack at checkPlatform (/Users/danielfy/.nvm/versions/node/v18.19.0/lib/node_modules/npm/node_modules/npm-install-checks/lib/index.js:55:25) 53 verbose stack at #checkEngineAndPlatform ...
then i use esbuild to copy
.node
files so my code package looks like this for the lambda function:questions
ffmpeg-static
handle multiple platforms seamlessly without requiring--force
flags or platform-specific installations.The text was updated successfully, but these errors were encountered: