0

Here is my code and the step that I have done:

  1. npm init
  2. install canvas with npm (version 2.8.0)
  3. Run node index.js

Capture d’écran 2021-09-15 à 11 41 36

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

How to change to an older version of Node.js

Remzzer
  • 53
  • 1
  • 6

0 Answers0