HipsterSavage
Explore posts from serverslibuuid.so.1: cannot open shared object file: No such file or directory
Solved
After adding
to
package.json
in main folder of the project despite it doing nothing in particular, Railway recongized the package and made libuuid and libGL available in the environment.
Be aware
node-canvas
is not an actual name of the package. It should be canvas
as stated in the docs.
https://www.npmjs.com/package/canvas
Despite that fact I added manually node-canvas
to the optional dependencies and it worked so I left it like that. If you try this solution, be sure to check if npm i canvas
won't be enough and feel free to post info about it here.
Note that optional dependencies don't need to really be succesfully installed, because npm ignores its instalation errors.14 replies
libuuid.so.1: cannot open shared object file: No such file or directory
Ok, found this mention in the nixpacks.docs:
(https://nixpacks.com/docs/providers/node)
Seems like since my project uses node canvas and not canvas it might be the case of why proper libraries are not added.
Gonna try this at home.
14 replies