nfroidure / ttf2woff2

Convert ttf files to woff2.
MIT License
297 stars 39 forks source link

node-gyp error on ttf2woff2 #37

Closed paulvandrunen closed 3 years ago

paulvandrunen commented 6 years ago

Hi in our Bamboo server and also when trying to install we get a node-gyp error. Anyone have a solution for this.

`npm install -g ttf2woff2 /usr/local/bin/ttf2woff2 -> /usr/local/lib/node_modules/ttf2woff2/bin/ttf2woff2.js

ttf2woff2@2.0.3 install /usr/local/lib/node_modules/ttf2woff2 (node-gyp rebuild > builderror.log) || (exit 0)

marcogigliarano commented 6 years ago

Hi, I got the same error, have you find a way to solve this issue? @paulvandrunen

Laslo89 commented 5 years ago

I got the same error, still.

RevealedFrom commented 5 years ago

I am getting the exact same error too, both on Ubuntu and Windows.

I am trying to install summernote, which uses grunt-webfont which in turn uses ttf2woff2.

Any help would be much appreciated. Thanks.

iwan-uschka commented 5 years ago

The reason could be an incompatible version of python (3+). As a workaround i use a project based version of python (2.7.11). I don't have any idea of python so maybe i did it the ugly way:

#!/bin/bash

PROJECT_DIR="${PWD}"

# install python 2.7.11 locally
rm -rf path/within/project/python_src
rm -rf path/within/project/python-2.7.11
mkdir -p path/within/project/python_src
cd path/within/project/python_src
wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz
tar zxfv Python-2.7.11.tgz
find Python-2.7.11 -type d | xargs chmod 0755
cd Python-2.7.11
./configure --prefix=${PROJECT_DIR}/path/within/project/python-2.7.11
make && make install
cd $PROJECT_DIR
rm -rf path/within/project/python_src
zuo305 commented 4 years ago

In my opinion, I found it is running well in Node 10, but failed in Node 12, I am using Python and already tried "window build tools".

anazhd commented 4 years ago

In my opinion, I found it is running well in Node 10, but failed in Node 12, I am using Python and already tried "window build tools".

yeah seems like it. I'd rather fall back to Node 10 than depending on Python 2+