[Vuejs]-How can I setup Fabric.js extension in Vue

1👍

From the github main page:
https://github.com/fabricjs/fabric.js

Install with bower

$ bower install fabric

Install with npm
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. When the installation is complete, you may need to restart your terminal or command prompt before installing fabric.

$ npm install fabric --save

Have you did all the steps? Node is Ok?
Check it out the page, there is a lot of tips there:

Install Node.js, then install NPM, if necessary.

To install NPM packages

 $ npm install

Run test suite, make sure testem is installed

$ npm install -g testem

Tell me if it helps.

Leave a comment