Error installing node-gyp on ubuntu

前端 未结 12 999
执念已碎
执念已碎 2020-12-02 09:39
npm http 200 https://registry.npmjs.org/weak/-/weak-0.2.2.tgz
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings

>         


        
相关标签:
12条回答
  • 2020-12-02 09:43

    I faced this issue on Ubuntu 16.04 while trying to install the wikimedia extension mathoid.

    I tried everything that was suggested and nothing worked until I did:

    sudo apt-get install librsvg2-2 librsvg2-dev
    
    0 讨论(0)
  • 2020-12-02 09:43

    On Ubuntu 10.04, Installing libicu solved my problem.

    sudo apt-get install libicu-dev

    0 讨论(0)
  • 2020-12-02 09:43

    I already had build-essential installed. I just had to run:

    sudo apt install python
    
    0 讨论(0)
  • 2020-12-02 09:47

    If the error is due to " fatal error: dns_sd.h: No such file or directory 32 | #include <dns_sd.h> ", solve it by

    " sudo apt-get install libavahi-compat-libdnssd-dev " , else if it is due to python2 follow @Manish Jangir method

    0 讨论(0)
  • 2020-12-02 09:49

    In my-case it was failing on Linux-mint 19.2, for some reasons on run-time gcc++ was not accessible. So by installing the build-essentials error was resolved. PS:

    build-essential package is a reference for all the packages needed to compile a Debian packages. It generally includes the GCC/g++ compilers and libraries and some other utilities. Informational for list of build-essential packages can be found on build-essentials

    0 讨论(0)
  • 2020-12-02 09:50

    on Ubuntu 18, I had to install required build libs to get it working

    sudo apt-get install build-essential
    
    0 讨论(0)
提交回复
热议问题