nocodb-seed icon indicating copy to clipboard operation
nocodb-seed copied to clipboard

npm install error! about gyp

Open cattong opened this issue 2 years ago • 3 comments

npm ERR! (Use node --trace-deprecation ... to show where the warning was created) npm ERR! gyp info spawn /usr/bin/python2 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/data/application/nocodb-seed/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 '/data/application/nocodb-seed/node_modules/sqlite3/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/data/application/nocodb-seed/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/root/.node-gyp/16.7.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=/root/.node-gyp/16.7.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/data/application/nocodb-seed/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.node-gyp/16.7.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/data/application/nocodb-seed/node_modules/sqlite3', 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: Undefined variable module_name in binding.gyp while trying to load binding.gyp npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1

cattong avatar Apr 17 '22 11:04 cattong

From the log output it seems to be an issue with building the sqlite3 native add-on. node-gyp is a tool to build native add-ons, and the module root as per your logs is /data/application/nocodb-seed/node_modules/sqlite3.

Maybe the discussion on this similar issue helps you. It has been reported for the sqlite3 package some time ago: https://github.com/TryGhost/node-sqlite3/issues/851

builderbob2 avatar Apr 27 '22 08:04 builderbob2

Moving this to discussions. (I thought this was our main repo)

edit : however node-gyp issue is a common thing comes up with npm install and node. And I doubt it has to do with nocodb alone.

o1lab avatar Apr 27 '22 09:04 o1lab

thanks, maybe I use the taobao registry。I switch to npmjs. Now done!

cattong avatar May 06 '22 02:05 cattong