Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7072

npm install griddb-node-api fails on WSL Ubuntu 22.04 – binding.gyp not found

$
0
0

Trying to use the GridDB Node.js client on WSL (Ubuntu 22.04) with Node.js v18, but the installation fails.

Steps I followed:

sudo apt install -y nodejs build-essential  node -v  # 18.20.8  npm -v   # 10.8.2  mkdir \~/gridDB-node  cd \~/gridDB-node  npm init -y  npm install griddb-node-api  

Error:

npm error gyp: binding.gyp not found (cwd: /home/eagle04/gridDB-node/node_modules/griddb-node-api)  npm error gyp ERR! configure error  npm error gyp ERR! stack Error: gyp failed with exit code: 1  

I also tried Node.js v20, but the error persisted. I checked the GridDB repo (griddb_nosql), but the expected Node.js client folder (client/nodejs) does not exist in the repo.

Environment:

  • WSL Ubuntu 22.04
  • Node.js v18.20.8
  • NPM v10.8.2
  • GridDB server v5.8

I have seen related questions and found this similar one:

Issue installing griddb-node-api on Ubuntu with GridDB v5.5 and Node.js v20.11

However, in that case, they used GridDB v5.5, I am using v5.8. I’ve tried multiple Node.js versions (v18 and v20). The environment in the other post was likely Ubuntu, but I am on WSL. I also cloned the GitHub repo and the folder structure (client/nodejs, client/javascript, etc.) seems missing or changed.

What I want to know:

A working way to install the GridDB Node.js client on WSL. Guidance on whether a specific Node.js version is required, or if additional libraries/environment variables need to be set.


Viewing all articles
Browse latest Browse all 7072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>