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

unable to install node api npm package #9

Open
priyanshusingh305 opened this issue Nov 27, 2024 · 2 comments
Open

unable to install node api npm package #9

priyanshusingh305 opened this issue Nov 27, 2024 · 2 comments

Comments

@priyanshusingh305
Copy link

it is not installing even after i installed vs build tools and also node-gyp

how to install this?

how to connect it to gridbd which is running in docker while nodejs is in windows.

image

C:\Users\Priyanshu Singh\Desktop\griddb-sample-app>npm install griddb-node-api
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\Priyanshu Singh\\Desktop\\griddb-sample-app\\node_modules\\griddb-node-api',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\Priyanshu Singh\Desktop\griddb-sample-app\node_modules\griddb-node-api\build'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\Priyanshu Singh\\Desktop\\griddb-sample-app\\node_modules\\griddb-node-api\\build'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\Priyanshu Singh\Desktop\griddb-sample-app\node_modules\griddb-node-api
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp info find Python using Python version 3.11.9 found at "C:\Users\Priyanshu Singh\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe"
npm error gyp info find VS using VS2022 (17.12.35521.163) found at:
npm error gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp info spawn C:\Users\Priyanshu Singh\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'C:\\Users\\Priyanshu Singh\\AppData\\Roaming\\nvm\\v18.20.5\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'msvs',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\Priyanshu Singh\\Desktop\\griddb-sample-app\\node_modules\\griddb-node-api\\build\\config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\Priyanshu Singh\\AppData\\Roaming\\nvm\\v18.20.5\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\Priyanshu Singh\\AppData\\Local\\node-gyp\\Cache\\18.20.5\\include\\node\\common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=C:\\Users\\Priyanshu Singh\\AppData\\Local\\node-gyp\\Cache\\18.20.5',
npm error gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\Priyanshu Singh\\AppData\\Roaming\\nvm\\v18.20.5\\node_modules\\npm\\node_modules\\node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\Priyanshu Singh\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\18.20.5\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=C:\\Users\\Priyanshu Singh\\Desktop\\griddb-sample-app\\node_modules\\griddb-node-api',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'C:\\Users\\Priyanshu Singh\\Desktop\\griddb-sample-app\\node_modules\\griddb-node-api\\build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp: binding.gyp not found (cwd: C:\Users\Priyanshu Singh\Desktop\griddb-sample-app\node_modules\griddb-node-api) while trying to load binding.gyp
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\Priyanshu Singh\AppData\Roaming\nvm\v18.20.5\node_modules\npm\node_modules\node-gyp\lib\configure.js:297:18)
npm error gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm error gyp ERR! System Windows_NT 10.0.26100
npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Priyanshu Singh\\AppData\\Roaming\\nvm\\v18.20.5\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm error gyp ERR! cwd C:\Users\Priyanshu Singh\Desktop\griddb-sample-app\node_modules\griddb-node-api
npm error gyp ERR! node -v v18.20.5
npm error gyp ERR! node-gyp -v v10.1.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: C:\Users\Priyanshu Singh\AppData\Local\npm-cache\_logs\2024-11-27T05_47_22_161Z-debug-0.log

these are the errors

@knonomura
Copy link
Member

Thank you for your usage.
I guess it might be an issue for node v18 with node-gyp.

@knonomura
Copy link
Member

I checked this issue in several cases.

"npm install griddb-node-api"
This package has no binding.gyp.

Could you try not npm 10 but npm 9 ?

(Success)
node 18
npm 9

(Fail)
node 18
npm 10

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

2 participants