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

npm install error! about gyp #5

Open
cattong opened this issue Apr 17, 2022 · 3 comments
Open

npm install error! about gyp #5

cattong opened this issue Apr 17, 2022 · 3 comments

Comments

@cattong
Copy link

cattong commented Apr 17, 2022

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

@builderbob2
Copy link

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: TryGhost/node-sqlite3#851

@o1lab
Copy link
Member

o1lab commented Apr 27, 2022

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 o1lab closed this as completed Apr 27, 2022
@o1lab o1lab reopened this Apr 27, 2022
@cattong
Copy link
Author

cattong commented May 6, 2022

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

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

3 participants