You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pdfjs@3.0.279 adds canvas as a dependency (though it looks like it might be made optional in the next release). Canvas doesn't have a native M1 prebuilt binary and so yarn install might break looking for it and trying to built it from source. You can fix it by installing the canvas dependencies manually, read this thread.
For me I was able to fix it by: brew install pkg-config cairo pango libpng jpeg giflib librsvg
This is a lot of dependencies.. I believe only pkg-config cairo pango are required but I just installed them all. brew cleanup brew doctor rm -r node_modules/ yarn install
The text was updated successfully, but these errors were encountered:
Just adding this as a FYI.
pdfjs@3.0.279 adds canvas as a dependency (though it looks like it might be made optional in the next release). Canvas doesn't have a native M1 prebuilt binary and so yarn install might break looking for it and trying to built it from source. You can fix it by installing the canvas dependencies manually, read this thread.
For me I was able to fix it by:
brew install pkg-config cairo pango libpng jpeg giflib librsvg
This is a lot of dependencies.. I believe only
pkg-config cairo pango
are required but I just installed them all.brew cleanup
brew doctor
rm -r node_modules/
yarn install
The text was updated successfully, but these errors were encountered: