Closed berekmerilorand closed 2 months ago
@berekmerilorand
You probably had problems installing the brew dependencies... Before installing things with brew, try it:
xcode-select --install
Try brew again:
brew install pkg-config cairo pango libpng jpeg giflib librsvg
And install canvas:
npm install canvas
It worked for me 🙂
@BlicBoy unfortunately for me it's not working...I did also a brew upgrade, reinstalled all the dependencies, cleaned the node_modules
and package-lock.json
, but I'm still facing the same error...
Solution was:
rm -rf node_modules
rm -rf package-lock.json
export SDKROOT=$(xcrun --show-sdk-path)
npm install canvas --force
Issue or Feature
Your Environment
npm list canvas
oryarn list canvas
): 2.10.1v20.10.0
Unfortunately I have the same error while trying to install Node
v20.10.0
on macOS with Sonoma 14.16.I've tried to run the below commands but with no success. After those packages are installed and I remove
node_modules
, same error is thrown.I've tried with:
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman python@3.12
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
brew install pkg-config cairo pango libpng jpeg giflib librsvg
Output:
Actual
canvas
related error: