Here is my code and the step that I have done:
- npm init
- install canvas with npm (version 2.8.0)
- Run node index.js
This error appeared:
_dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /Users/macbook/Desktop/test/node_modules/canvas/build/Release/libpixman-1.0.40.0.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /Users/macbook/Desktop/test/node_modules/canvas/build/Release/libpixman-1.0.40.0.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib_
My Mac config -> MacOS High Sierra - Version 10.13.6
I think my Mac version is too old for libpixman-1.0.40.0. If it's the problem, how can I downgrade this package? Which version should I get to make sure the project will still run?
Edit 21/09/2021:
Here is the solution. My env -> MacOSX 10.13.5.
I needed to downgrade both node and canvas version to run the project.
npm i canvas@2.6.1
Then I install an older version of node (node 8.10.0) with NVM