Skip to content
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

node-gyp error on ttf2woff2 #37

Closed
paulvandrunen opened this issue Nov 3, 2017 · 6 comments
Closed

node-gyp error on ttf2woff2 #37

paulvandrunen opened this issue Nov 3, 2017 · 6 comments

Comments

@paulvandrunen
Copy link

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

[email protected] install /usr/local/lib/node_modules/ttf2woff2
(node-gyp rebuild > builderror.log) || (exit 0)

@marcogigliarano
Copy link

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

@Laslo89
Copy link

Laslo89 commented Oct 8, 2018

I got the same error, still.

@RevealedFrom
Copy link

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
Copy link

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:

  • add "python = ${PWD}/path/within/project/python-2.7.11/bin/python" to .npmrc at project root level
  • put python into this specific directory, i did it like this
#!/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
Copy link

zuo305 commented Nov 13, 2019

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
Copy link

anazhd commented Feb 13, 2020

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+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants