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

Error running "npm install --save grandiose" on Linux/Manjaro #32

Open
zepadovani opened this issue Dec 10, 2023 · 3 comments
Open

Error running "npm install --save grandiose" on Linux/Manjaro #32

zepadovani opened this issue Dec 10, 2023 · 3 comments

Comments

@zepadovani
Copy link

Hi, I'm getting the following error while trying to run npm install --save grandiose on Linux/Manjaro:

npm ERR! code 1
npm ERR! path /home/padovani/Downloads/teste_ndi/node_modules/grandiose
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/padovani/Downloads/teste_ndi/node_modules/grandiose/build'
npm ERR!   COPY ../build/Release/Processing.NDI.Lib.x64.dll
npm ERR!   CXX(target) Release/obj.target/grandiose/src/grandiose_util.o
npm ERR! make: Leaving directory '/home/padovani/Downloads/teste_ndi/node_modules/grandiose/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.11.6 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/padovani/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/padovani/Downloads/teste_ndi/node_modules/grandiose/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/padovani/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/padovani/.cache/node-gyp/18.18.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/padovani/.cache/node-gyp/18.18.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/padovani/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/padovani/.cache/node-gyp/18.18.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/padovani/Downloads/teste_ndi/node_modules/grandiose',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/grandiose_util.cc: In function ‘napi_status checkStatus(napi_env, napi_status, const char*, uint32_t)’:
npm ERR! ../src/grandiose_util.cc:48:5: error: ‘itoa’ was not declared in this scope
npm ERR!    48 |     itoa(errorInfo->error_code, errorCode, 10), errorInfo->error_message);
npm ERR!       |     ^~~~
npm ERR! ../src/grandiose_util.cc: In function ‘napi_status checkArgs(napi_env, napi_callback_info, char*, napi_value__**, size_t, napi_valuetype*)’:
npm ERR! ../src/grandiose_util.cc:92:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
npm ERR!    92 |   for ( int x = 0 ; x < argc ; x++ ) {
npm ERR!       |                     ~~^~~~~~
npm ERR! ../src/grandiose_util.cc: In function ‘int32_t rejectStatus(napi_env, carrier*, char*, int32_t)’:
npm ERR! ../src/grandiose_util.cc:134:43: error: ‘itoa’ was not declared in this scope
npm ERR!   134 |     status = napi_create_string_utf8(env, itoa(c->status, errorChars, 10),
npm ERR!       |                                           ^~~~
npm ERR! make: *** [grandiose.target.mk:128: Release/obj.target/grandiose/src/grandiose_util.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/home/padovani/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
npm ERR! gyp ERR! System Linux 6.6.5-1-MANJARO
npm ERR! gyp ERR! command "/home/padovani/.nvm/versions/node/v18.18.0/bin/node" "/home/padovani/.nvm/versions/node/v18.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/padovani/Downloads/teste_ndi/node_modules/grandiose
npm ERR! gyp ERR! node -v v18.18.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/padovani/.npm/_logs/2023-12-10T11_06_57_730Z-debug-0.log

any clues?

@goldenbiscuitt
Copy link

same issue here on centos 9

@georgewoofbates
Copy link

Did you figure this out? Same on MacOs

@kpaulisse
Copy link

Whatever the problem is here, it seems that it's been resolved but not pushed to the npm repositories. I got this to install via the current master branch:

git clone https://github.com/Streampunk/grandiose.git
npm install --save ./grandiose

This could be resolved by the author publishing the latest code to the npm repositories.

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

4 participants