-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recurrent pixman not found on path #1065
Comments
Any updates on this? |
I had to install via brew (since I'm on a mac) pixman, cairo and pango. Now it works! |
Hi, Having same error as for this issue when trying npm, Part of my error output:
UPDATE:
But then I got a different error in one of the files:
Any comment? |
^^^ Ok: I found this: See my environment above |
On Ubuntu 20.04: sudo apt install libpixman-1-dev libcairo2-dev libpango1.0-dev libjpeg8-dev libgif-dev |
This was the solution for me. Thank you |
Ran into this today and installing these packages didn't do it. Using earlier versions of Python and Node did the trick - canvas doesn't seem to play nice with Node 15 (and node-gyp doesn't like Python 3.9). See #1319 (comment). |
This seems to have been fixed in the 2.7.0 release. I was able to run an Using one of the 2.6.x versions, I was hitting the same pixman errors mentioned above. |
This solution is workable for me, most articles only mentioned the following update but NOT work |
How did you do that? |
The packages to install came from Automattic/node-canvas#1065 (comment).
Thanks for the solutions. |
I installed it like this:
I had to do this in order to install the development version of jupyterlab |
This command for Fedora
|
It's really usefully on Ubuntu 18.04, Thank U. |
I'm on Ubuntu 22.04 |
Rocky linux 9
|
i'm trying to install pixman on windows 11 using msys2, i'm having a lot of trouble installing pixman and i'm thinking if i should just switch to Ubuntu? |
what do you mean by using 2.7.0? the latest canvas version as of 2023 is 2.11.2 |
For those homebrew did not work (as of me for example): I am using Mac OSX with M1 Chip and I was not able to install dependencies and also not able to run unit tests because of that. After trying several solutions, I found out the cause, it was homebrew that was not configuring pkg-config properly after installing it. So what solved was to use Mac Ports to install pkg-config and pango: and wait for long 40 minutes, I can finally install everything properly on the project and no more canvas errors showing up and I can finally run unit tests again :) thank god. i spent 1 week trying to solve that one. |
You're a 👑, @paulo-roberto-rosa. That worked on my M3, too. 🤗 |
After installing pixman from source, I set it on bash_profile after rebuilding node-gyp
`> node-gyp rebuild
Package pixman-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing
pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gypfailed with exit code
I also tried installing pixman with brew and macports, but the issue always resets to this error message, even after successful install.
My Environment
The text was updated successfully, but these errors were encountered: