简体   繁体   English

在Windows环境中的node.js上安装fabric.js

[英]Install fabric.js on node.js in a Windows environment

I am trying to install fabric.js on node.js. 我正在尝试在node.js上安装fabric.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". 但是安装失败,并显示错误消息“找不到Python可执行文件”。 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. 我看到安装无法进行node-gyp的重建,因此我尝试手动安装node-gyp。 The manual installation of node-gyp completed successfully, but this did not help with the installation of fabric.js. 手动安装node-gyp已成功完成,但这对fabric.js的安装没有帮助。

Does anyone know if there is a workaround for this issue to get fabric.js installed in a Windows environment? 有谁知道是否存在解决此问题的方法以在Windows环境中安装fabric.js?

Know this is old, but for those that see something similar. 知道这是古老的,但是对于那些看到类似东西的人。

As the initial error reports: 作为初始错误报告:

  1. Make sure you have python installed 确保您已安装python

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

  2. Make sure you have python in your path after it has been installed. 安装后,请确保路径中有python。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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