npm install fails at Failed at the [email protected] install script

10,059

Solution 1

That version of grpc is not compatible with that version of Node. You can fix that by using a newer version of grpc or an older version of Node. The newest version of grpc at this time, 1.24.2, is compatible with Node 12.x.

Solution 2

Its not supported in the latest version of node, gyp is supported in 11.x version. I was facing same issue. I installed version node-v11.15.0 and it build successfully. Revert current version of node, download from here node-v11.15.0

Share:
10,059
Fakhar Ahmad Rasul
Author by

Fakhar Ahmad Rasul

I work as a Senior Software Engineer in a team which maintains, add features and develops a SAAS based software product built for the enterprise dealing with large data. Our infrastructure is on Azure and backend is built on .Net.

Updated on June 13, 2022

Comments

  • Fakhar Ahmad Rasul
    Fakhar Ahmad Rasul almost 2 years

    I am trying to do npm install for an angular project and this is the issue I am facing

    > [email protected] install D:\professional-workspace\Gentrick\Risco\risco-web\node_modules\grpc
    > node-pre-gyp install --fallback-to-build --library=static_library
    
    node-pre-gyp WARN Using request for node-pre-gyp https download
    node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.20.0/node-v72-win32-x64-unknown.tar.gz
    node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
    

    then

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] install script.
    

    Environment:-

    windows: 10 64x
    
    node: 12.16.1
    
    angular CLI: 7.3.9
    
    angular: 6.1.10
    

    I have tried installing python as well but that didnt help either.

    • Shubham Tiwari
      Shubham Tiwari about 4 years
      npm install grpc --verbose