-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Can't install Fabric on Mac OS #5224
Comments
Besides cairo, node-canvas requires a few other packages.
Please, fix the documentation. Also, makes no sense to have all this config to use fabric as a client library. |
I can't replicate the node-canvas documentation here. node-canvas is an optional dependency and missing node-canvas do not break the installation. there is a install going on without the additional libs and works. |
I'm not saying you should replicate the node-canvas install documentation (but you could), I'm saying "To install Fabric.js using npm, you must first manually install Cairo on your system. Cairo is a system library which powers node-canvas, which Fabric.js relies on.", is misleading, because it gives the impression that all that is required is Cairo, when node-canvas depends on a few other dependencies (depends on OS) that are necessary for a smooth install. Something like "To install Fabric.js using npm, you must first manually install node-canvas dependencies." would be more helpful. |
But is not true. if fabricjs is a project dependency, the installation should trow warning but not fail |
I maintain that the documentation is not clear enough. |
@asturur anyway, npm installation fails on macOS. |
something new with mojave? i can install with high sierra. |
@asturur did you already installed something from this list Actually, we are working with Electron application and cannot make build to work on other system without these modules installed. Any help would be appreciated.
I've read docs at |
It should proceed since those are marked as optionalDeps. node-canvas for fabric is needed for testing and for working under node. The PR that enable to work with canvas 2 is nearly done, is here: #5356 I m missing to fix some strange new crash/extra log that happens because of the changes in JSDOM and CANVAS2 interacting with my testing code.
I installed all of them or node-canvas cannot work. |
@asturur Can you make it more clear? npm is right now used for dependency managment in node.js and client side projects. When I try to install fabric through npm it always requires cairo:
and it fails. I want to use it in the browser but I want to install it through npm. fabric: 2.7.0 |
@Olgagr did you tried to install node-canvas?
the PR has been merged. |
canvas@2 support can be used in fabric 3.0 that is fabric 2.7.0 + bugfixes + node-canvas2 Is ready, i m clearing out emails to see if there is some weird bug to fix before releasing. node-canvas2 is prebuilt, so no more building headaches if you are in one of the supported platforms. |
Mac OS X 10.13.6
Node.js 8.11.3
NPM 5.6.0
MacPorts 2.5.3
port installed
bzip2 @1.0.6_0 (active)
cairo @1.14.12_0+quartz+x11 (active)
db48 @4.8.30_4 (active)
expat @2.2.6_1 (active)
fontconfig @2.13.1_0 (active)
freetype @2.9.1_0 (active)
gdbm @1.16_0 (active)
gettext @0.19.8.1_0 (active)
glib2 @2.56.2_0+x11 (active)
libedit 20170329-3.1_2 (active)
libffi @3.2.1_0 (active)
libiconv @1.15_0 (active)
libpixman @0.34.0_0 (active)
libpng @1.6.35_0 (active)
libxml2 @2.9.7_0 (active)
ncurses @6.1_0 (active)
openssl @1.0.2p_0 (active)
ossp-uuid @1.6.2_11+perl5_26 (active)
pcre @8.42_0 (active)
perl5.26 @5.26.2_1 (active)
python2_select @0.0_2 (active)
python27 @2.7.15_0 (active)
python_select @0.3_7 (active)
readline @7.0.005_0 (active)
sqlite3 @3.24.0_1 (active)
xorg-libpthread-stubs @0.4_0 (active)
xorg-libX11 @1.6.6_1 (active)
xorg-libXau @1.0.8_1 (active)
xorg-libxcb @1.13_1+python27 (active)
xorg-libXdmcp @1.1.2_1 (active)
xorg-libXext @1.3.3_1 (active)
xorg-xcb-proto @1.13_0+python27 (active)
xorg-xcb-util @0.4.0_1 (active)
xorg-xorgproto @2018.4_0 (active)
xrender @0.9.10_1 (active)
xz @5.2.4_0 (active)
zlib @1.2.11_0 (active)
I'm trying to install fabric.js for client use through npm:
The text was updated successfully, but these errors were encountered: