简体   繁体   中英

Install fabric.js on node.js in a Windows environment

I am trying to install fabric.js on node.js. I put in the command to do the installation as given in this document :

npm install -g fabric

But the installation fails with the error message "Can't find Python executable". Here is a screenshot showing the error:

在此处输入图片说明

I saw that the installation failed doing a rebuild of node-gyp, and so I tried manually installing node-gyp. The manual installation of node-gyp completed successfully, but this did not help with the installation of fabric.js.

Does anyone know if there is a workaround for this issue to get fabric.js installed in a Windows environment?

Know this is old, but for those that see something similar.

As the initial error reports:

  1. Make sure you have python installed

    https://www.python.org/downloads/windows/

  2. Make sure you have python in your path after it has been installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM