What does the error Error: dlopen(/Users/me/Documents/metaplex-master/js/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'
mean?
I get this error when running ts-node ./packages/cli/src/candy-machine-cli.ts --version
.
How can I solve this.
I know there are some problems with canvas on M1 and I already have it setup for the arm64 architecture.
I also get this error when doing some other stuff with canvas on another projects. I am on a M1 pro MacBook Pro.
I got the same error too. My solution:
nvm uninstall 16
uname -m
command)nvm install 16
(and you got the x86_64 version node in your machine)node_modules
and reinstall dependencies: npm i
Ref: https://github.com/Automattic/node-canvas/issues/1733#issuecomment-807925516