Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment Failing #2285

Closed
hellwaiver opened this issue Sep 15, 2024 · 2 comments
Closed

Deployment Failing #2285

hellwaiver opened this issue Sep 15, 2024 · 2 comments

Comments

@hellwaiver
Copy link

I just ran wasp deploy fly deploy and the build failed

I am getting the logs:

#16 [server-builder  8/11] RUN npm install && cd .wasp/build/server && npm install
#16 9.866 npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
#16 10.08 npm WARN deprecated [email protected]: This package is no longer supported.
#16 10.09 npm WARN deprecated [email protected]: This package is no longer supported.
#16 10.10 npm WARN deprecated [email protected]: Use your platform's native atob() and btoa() methods instead
#16 10.13 npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#16 10.32 npm WARN deprecated [email protected]: Use your platform's native DOMException instead
#16 10.84 npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
#16 11.12 npm WARN deprecated [email protected]: This package is no longer supported.
#16 30.40 npm notice 
#16 30.40 npm notice New major version of npm available! 9.8.1 -> 10.8.3
#16 30.40 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.3>
#16 30.40 npm notice Run `npm install -g [email protected]` to update!
#16 30.40 npm notice 
#16 30.40 npm ERR! code 1
#16 30.40 npm ERR! path /app/node_modules/canvas
#16 30.40 npm ERR! command failed
#16 30.40 npm ERR! command sh -c node-pre-gyp install --fallback-to-build --update-binary
#16 30.40 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/app/node_modules/canvas/build/Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
#16 30.40 npm ERR! node-pre-gyp info it worked if it ends with ok
#16 30.40 npm ERR! node-pre-gyp info using [email protected]
#16 30.40 npm ERR! node-pre-gyp info using [email protected] | linux | x64
#16 30.40 npm ERR! node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz
#16 30.40 npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz 
#16 30.40 npm ERR! node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v108 ABI, musl) (falling back to source compile with node-gyp) 
#16 30.40 npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-x64.tar.gz 

Not sure what this is - any help?

@infomiho
Copy link
Contributor

It seems to be related to the node-canvas dependency not offering prebuilt binaries for ARM CPUs which Fly uses, I suppose:

@hellwaiver
Copy link
Author

Thanks, I fixed by swapping to napi-rs/canvas!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants