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

node-gyp error with building @vscode/sqlite3: gyp: binding.gyp not found #2732

Closed
ouliuquan opened this issue Sep 13, 2022 · 7 comments
Closed
Labels

Comments

@ouliuquan
Copy link

Please look thru your error log for the string gyp info using node-gyp@ and if the version number is less than the current release of node-gyp then please upgrade using the instructions at https://github.com/nodejs/node-gyp/blob/master/docs/Updating-npm-bundled-node-gyp.md and try your command again.

Requests for help with node-sass are very common. Please be aware that this package is deprecated, you should seek alternatives and avoid opening new issues about it here.

  • Node Version: v16.17.0
  • npm:8.19.1
  • Platform:Microsoft Windows 11 10.0.22000 Build 22000 x64-based PC
  • Compiler: MSBuild version 17.3.1+2badb37d1
  • Module:@vscode/sqlite3
Verbose output (from npm or node-gyp):
PS D:\Repos\testsql> yarn --verbose
yarn install v1.22.19
verbose 0.2053929 Checking for configuration file "D:\\Repos\\testsql\\.npmrc".
verbose 0.2066641 Checking for configuration file "C:\\Users\\SmartOne\\.npmrc".
verbose 0.207758 Found configuration file "C:\\Users\\SmartOne\\.npmrc".
verbose 0.2090131 Checking for configuration file "D:\\Program\\nodejs\\etc\\npmrc".
verbose 0.209608 Checking for configuration file "D:\\Repos\\testsql\\.npmrc".
verbose 0.2102986 Checking for configuration file "D:\\Repos\\.npmrc".
verbose 0.2121822 Checking for configuration file "D:\\Repos\\testsql\\.yarnrc".
verbose 0.2126269 Checking for configuration file "C:\\Users\\SmartOne\\.yarnrc".
verbose 0.2131397 Found configuration file "C:\\Users\\SmartOne\\.yarnrc".
verbose 0.2138121 Checking for configuration file "D:\\Program\\nodejs\\etc\\yarnrc".
verbose 0.2142654 Checking for configuration file "D:\\Repos\\testsql\\.yarnrc".
verbose 0.2146782 Checking for configuration file "D:\\Repos\\.yarnrc".
verbose 0.2180578 current time: 2022-09-13T07:21:59.393Z
info No lockfile found.
[1/4] Resolving packages...
verbose 0.2501063 Performing "GET" request to "https://registry.npm.taobao.org/@vscode%2fsqlite3".
verbose 0.4714059 Request "https://registry.npm.taobao.org/@vscode%2fsqlite3" finished with status code 200.
verbose 0.4747995 Performing "GET" request to "https://registry.npm.taobao.org/node-addon-api".
verbose 0.535583 Request "https://registry.npm.taobao.org/node-addon-api" finished with status code 200.
[2/4] Fetching packages...
[3/4] Linking dependencies...
verbose 0.566633 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\common.gypi" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\common.gypi" is the same size (762) and mtime (1663041895915).
verbose 0.5673303 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\LICENSE.md" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\LICENSE.md" is the same size (1245) and mtime (1663041895915).
verbose 0.5678795 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi-inl.h" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\napi-inl.h" is the same size (204456) and mtime (1663041895915).
verbose 0.5683537 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\except.gypi" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\except.gypi" is the same size (560) and mtime (1663041895915).
verbose 0.5688281 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\index.js" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\index.js" is the same size (296) and mtime (1663041895915).
verbose 0.5690433 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi.h" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\napi.h" is the same size (121041) and mtime (1663041895915).
verbose 0.5695046 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\node_api.gyp" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\node_api.gyp" is the same size (132) and mtime (1663041895915).
verbose 0.5697438 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\nothing.c" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\nothing.c" is the same size (0) and mtime (1663041895915).
verbose 0.5700687 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\napi-inl.deprecated.h" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\napi-inl.deprecated.h" is the same size (7251) and mtime (1663041895915).
verbose 0.5706853 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\noexcept.gypi" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\noexcept.gypi" is the same size (639) and mtime (1663041895915).
verbose 0.571221 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\package.json" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\package.json" is the same size (8972) and mtime (1663041895915).
verbose 0.5719216 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\README.md" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\README.md" is the same size (12881) and mtime (1663041895915).
verbose 0.5732171 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\package-support.json" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\package-support.json" is the same size (467) and mtime (1663041895915).
verbose 0.5738284 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.dockerignore" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\.dockerignore" is the same size (306) and mtime (1663041894878).
verbose 0.5744622 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\binding.gyp" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\binding.gyp" is the same size (2317) and mtime (1663041894878).
verbose 0.5751581 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.yarnrc" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\.yarnrc" is the same size (75) and mtime (1663041894878).
verbose 0.5760023 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\CHANGELOG.md" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\CHANGELOG.md" is the same size (11024) and mtime (1663041894878).
verbose 0.5767349 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\Dockerfile" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\Dockerfile" is the same size (2627) and mtime (1663041894878).
verbose 0.5772583 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\CONTRIBUTING.md" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\CONTRIBUTING.md" is the same size (2814) and mtime (1663041894878).
verbose 0.5777555 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\index.d.ts" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\index.d.ts" is the same size (4968) and mtime (1663041894878).
verbose 0.578383 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\README.md" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\README.md" is the same size (10565) and mtime (1663041894878).
verbose 0.5790112 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\LICENSE" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\LICENSE" is the same size (1460) and mtime (1663041894878).
verbose 0.5797566 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\SECURITY.md" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\SECURITY.md" is the same size (2780) and mtime (1663041894878).
verbose 0.5808464 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\package.json" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\package.json" is the same size (1907) and mtime (1663041894878).
verbose 0.5816898 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\sqlite3.js" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\sqlite3.js" is the same size (43) and mtime (1663041894878).
verbose 0.5839882 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\clang-format.js" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\tools\\clang-format.js" is the same size (1892) and mtime (1663041895915).
verbose 0.5845915 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\check-napi.js" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\tools\\check-napi.js" is the same size (3210) and mtime (1663041895915).
verbose 0.5854646 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\eslint-format.js" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\tools\\eslint-format.js" is the same size (1746) and mtime (1663041895915).
verbose 0.5863373 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\common-sqlite.gypi" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\deps\\common-sqlite.gypi" is the same size (1322) and mtime (1663041894878).
verbose 0.5872072 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\conversion.js" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\tools\\conversion.js" is the same size (15275) and mtime (1663041895915).
verbose 0.5877323 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\extract.py" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\deps\\extract.py" is the same size (191) and mtime (1663041894878).
verbose 0.588231 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\sqlite-autoconf-3360000.tar.gz" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\deps\\sqlite-autoconf-3360000.tar.gz" is the same size (2977080) and mtime (1663041894878).
verbose 0.5887424 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\deps\\sqlite3.gyp" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\deps\\sqlite3.gyp" is the same size (3287) and mtime (1663041894878).
verbose 0.5891093 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-node-addon-api-4.3.0-52a1a0b475193e0928e98e0426a0d1254782b77f-integrity\\node_modules\\node-addon-api\\tools\\README.md" as the file at "D:\\Repos\\testsql\\node_modules\\node-addon-api\\tools\\README.md" is the same size (3217) and mtime (1663041895915).
verbose 0.5894238 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\index.js" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\lib\\index.js" is the same size (39) and mtime (1663041894878).
verbose 0.5897746 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3-binding.js" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3-binding.js" is the same size (263) and mtime (1663041894878).
verbose 0.5901787 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3.js" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\lib\\sqlite3.js" is the same size (6309) and mtime (1663041894878).
verbose 0.5906048 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\async.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\async.h" is the same size (2037) and mtime (1663041894878).
verbose 0.5911596 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\lib\\trace.js" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\lib\\trace.js" is the same size (1346) and mtime (1663041894878).
verbose 0.5919651 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\backup.cc" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\backup.cc" is the same size (13613) and mtime (1663041894878).
verbose 0.5924589 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\backup.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\backup.h" is the same size (7058) and mtime (1663041894878).
verbose 0.5928967 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\database.cc" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\database.cc" is the same size (22253) and mtime (1663041894878).
verbose 0.5932751 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\database.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\database.h" is the same size (5781) and mtime (1663041894878).
verbose 0.5937878 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\gcc-preinclude.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\gcc-preinclude.h" is the same size (249) and mtime (1663041894878).
verbose 0.5945502 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\macros.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\macros.h" is the same size (12006) and mtime (1663041894878).
verbose 0.5953014 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\node_sqlite3.cc" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\node_sqlite3.cc" is the same size (10398) and mtime (1663041894878).
verbose 0.5957564 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\statement.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\statement.h" is the same size (6644) and mtime (1663041894878).
verbose 0.5961533 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\statement.cc" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\statement.cc" is the same size (29587) and mtime (1663041894878).
verbose 0.5967337 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\src\\threading.h" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\src\\threading.h" is the same size (1153) and mtime (1663041894878).
verbose 0.5977549 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\.github\\workflows\\node.js.yml" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\.github\\workflows\\node.js.yml" is the same size (774) and mtime (1663041894878).
verbose 0.5991727 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\Dockerfile" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\Dockerfile" is the same size (2494) and mtime (1663041894878).
verbose 0.5997983 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\Dockerfile" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\Dockerfile" is the same size (2531) and mtime (1663041894878).
verbose 0.6003752 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\run.sh" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm\\run.sh" is the same size (1955) and mtime (1663041894878).  
verbose 0.6010042 Skipping copying of file "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@vscode-sqlite3-5.0.8-72b07061c5f90a9dd598a5506f598fcc817fab90-integrity\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\run.sh" as the file at "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\tools\\docker\\architecture\\linux-arm64\\run.sh" is the same size (1982) and mtime (1663041894878).
verbose 0.6020488 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\node-addon-api".
verbose 0.6117789 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build".
verbose 0.6173297 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\binding.sln".
verbose 0.6178549 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\config.gypi".
verbose 0.6181889 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\deps".
verbose 0.61856 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\Release".
verbose 0.6188301 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\vscode-sqlite3.vcxproj".
verbose 0.6192259 Removing extraneous file "D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\vscode-sqlite3.vcxproj.filters".
[4/4] Building fresh packages...
verbose 2.5464598 Error: D:\Repos\testsql\node_modules\@vscode\sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: D:\Repos\testsql\node_modules\@vscode\sqlite3
Output:
D:\Repos\testsql\node_modules\@vscode\sqlite3>if not defined npm_config_node_gyp (node "D:\Program\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.17.0 | win32 | x64
gyp info find Python using Python version 3.10.6 found at "D:\Program Files\Python310\python.exe"
gyp info find VS using VS2022 (17.3.32825.248) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
gyp info find VS run with --verbose for detailed information
gyp info spawn D:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0',
gyp info spawn args   '-Dnode_gyp_dir=D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\SmartOne\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
�ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�-m�����ء�
  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> D:\Repos\testsql\node_modules\@vscode\sqlite3\build\Release\\nothing.lib
  unpack_sqlite_dep
  'D:\Program' �����ڲ����ⲿ���Ҳ���ǿ����еij���
  ���������ļ���
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: ��..\..\deps\sqlite-autoconf-3360000.tar.gz�����Զ����������˳�������Ϊ 1�� [D:\Repos\testsql\node_modules\@vscode\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Program\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\Program\\nodejs\\node.exe" "D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Repos\testsql\node_modules\@vscode\sqlite3
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
    at ProcessTermError.ExtendableBuiltin (C:\Users\SmartOne\.node\corepack\yarn\1.22.19\lib\cli.js:721:66)
    at ProcessTermError.MessageError (C:\Users\SmartOne\.node\corepack\yarn\1.22.19\lib\cli.js:750:123)
    at new ProcessTermError (C:\Users\SmartOne\.node\corepack\yarn\1.22.19\lib\cli.js:790:113)
    at ChildProcess.<anonymous> (C:\Users\SmartOne\.node\corepack\yarn\1.22.19\lib\cli.js:25787:17)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1093:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
error D:\Repos\testsql\node_modules\@vscode\sqlite3: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: D:\Repos\testsql\node_modules\@vscode\sqlite3
Output:
D:\Repos\testsql\node_modules\@vscode\sqlite3>if not defined npm_config_node_gyp (node "D:\Program\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.17.0 | win32 | x64
gyp info find Python using Python version 3.10.6 found at "D:\Program Files\Python310\python.exe"
gyp info find VS using VS2022 (17.3.32825.248) found at:
gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
gyp info find VS run with --verbose for detailed information
gyp info spawn D:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0',
gyp info spawn args   '-Dnode_gyp_dir=D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\SmartOne\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\Repos\\testsql\\node_modules\\@vscode\\sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe
gyp info spawn args [
gyp info spawn args   'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64'
gyp info spawn args ]
�ڴ˽��������һ������һ����Ŀ����Ҫ���ò������ɣ������ӡ�-m�����ء�
  nothing.c
  win_delay_load_hook.cc
  nothing.vcxproj -> D:\Repos\testsql\node_modules\@vscode\sqlite3\build\Release\\nothing.lib
  unpack_sqlite_dep
  'D:\Program' �����ڲ����ⲿ���Ҳ���ǿ����еij���
  ���������ļ���
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: ��..\..\deps\sqlite-autoconf-3360000.tar.gz�����Զ����������˳�������Ϊ 1�� [D:\Repos\testsql\node_modules\@vscode\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:\Program\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\Program\\nodejs\\node.exe" "D:\\Program\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Repos\testsql\node_modules\@vscode\sqlite3
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS D:\Repos\testsql> 

Hi, I had been seeing this bug for week when I building the vscode using the VS2022. Now I found that maybe node-gyp doesn't support 2022, I found this info in file find-visualstudio.js, line 269 it wote:

  // Helper - process MSBuild information
  getMSBuild: function getMSBuild (info, versionYear) {
    const pkg = 'Microsoft.VisualStudio.VC.MSBuild.Base'
    const msbuildPath = path.join(info.path, 'MSBuild', 'Current', 'Bin', 'MSBuild.exe')
    if (info.packages.indexOf(pkg) !== -1) {
      this.log.silly('- found VC.MSBuild.Base')
      if (versionYear === 2017) {
        return path.join(info.path, 'MSBuild', '15.0', 'Bin', 'MSBuild.exe')
      }
      if (versionYear === 2019) {
        return msbuildPath
      }
    }
    // visual studio 2022 don't has msbuild pkg
    if (fs.existsSync(msbuildPath)) {
      return msbuildPath
    }
    return null
  },

So, I maybe cause by this problem?

@cclauss
Copy link
Contributor

cclauss commented Sep 13, 2022

#2533

Does node-gyp configure --msvs_version=2022 do anything to help?

@ouliuquan ouliuquan changed the title Can node-gpy support Visual Studio 2022 now? Can node-gyp support Visual Studio 2022 now? Sep 13, 2022
@ouliuquan
Copy link
Author

ouliuquan commented Sep 13, 2022

@cclauss Thanks for your advice, I had try your command in 2022, it's the same result. And I when I download VS2019, the problem still here, I just can't findout what is wrong, I used to use the node-gyp, and it runs good at building node C++ module, here is the VS2019 log:

PS D:\Repos\testsql> node-gyp configure --msvs_version=2019 --verbose
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'D:\\Program\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'configure',
gyp verb cli   '--msvs_version=2019',
gyp verb cli   '--verbose'
gyp verb cli ]
gyp info using node-gyp@9.1.0
gyp info using node@16.17.0 | win32 | x64
gyp verb command configure []
gyp verb find Python Python is not set from command line or npm configuration
gyp verb find Python Python is not set from environment variable PYTHON
gyp verb find Python checking if "python3" can be used
gyp verb find Python - executing "python3" to get executable path
gyp verb find Python - "python3" is not in PATH or produced an error
gyp verb find Python checking if "python" can be used
gyp verb find Python - executing "python" to get executable path
gyp verb find Python - executable path is "D:\Program Files\Python310\python.exe"
gyp verb find Python - executing "D:\Program Files\Python310\python.exe" to get version
gyp verb find Python - version is "3.10.6"
gyp info find Python using Python version 3.10.6 found at "D:\Program Files\Python310\python.exe"
gyp verb get node dir no --target version specified, falling back to host node version: 16.17.0
gyp verb command install [ '16.17.0' ]
gyp verb install input version string "16.17.0"
gyp verb install installing version: 16.17.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 16.17.0
gyp verb build dir attempting to create "build" dir: D:\Repos\testsql\build
gyp verb build dir "build" dir needed to be created? No
gyp verb find VS msvs_version was set from command line or npm config
gyp verb find VS - looking for Visual Studio version 2019
gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp verb find VS checking VS2019 (16.11.32802.440) found at:
gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp verb find VS - found "Visual Studio C++ core features"
gyp verb find VS - found VC++ toolset: v142
gyp verb find VS - found Windows SDK: 10.0.19041.0
gyp info find VS using VS2019 (16.11.32802.440) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp info find VS run with --verbose for detailed information
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: D:\Repos\testsql\build\config.gypi
gyp verb config.gypi checking for gypi file: D:\Repos\testsql\config.gypi
gyp verb common.gypi checking for gypi file: D:\Repos\testsql\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn D:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Repos\\testsql\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\SmartOne\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\Repos\\testsql',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\Repos\\testsql\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp: binding.gyp not found (cwd: D:\Repos\testsql) while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\SmartOne\AppData\Local\Yarn\Data\global\node_modules\node-gyp\lib\configure.js:284:16)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\Program\\nodejs\\node.exe" "C:\\Users\\SmartOne\\AppData\\Local\\Yarn\\Data\\global\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--msvs_version=2019" "--verbose"
gyp ERR! cwd D:\Repos\testsql
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
PS D:\Repos\testsql>

what is the gyp: binding.gyp not found (cwd: D:\Repos\testsql) while trying to load binding.gyp means?

@cclauss
Copy link
Contributor

cclauss commented Sep 13, 2022

what is the gyp: binding.gyp not found

#2714 (comment)

@ouliuquan
Copy link
Author

@cclauss Hi, I have try your link and clean all my Cache folder, but the error still. Now I create a repo in GitHub:https://github.com/ouliuquan/testsqlite3, maybe the problem is not the node-gyp, maybe is. I am trying to fix out the problem, if we can, I will send a PR to fix for someone who need.

@ouliuquan
Copy link
Author

ouliuquan commented Sep 13, 2022

I remove all the node_gyp folder, and re-install nodejs, try anything command, the problem still, is it any way to find out what's wrong with my env? Here is recently of my repo:

PS D:\Repos\testsqlite3> yarn node-gyp configure
yarn run v1.22.19
$ D:\Repos\testsqlite3\node_modules\.bin\node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@9.1.0
gyp info using node@16.17.0 | win32 | x64
gyp info find Python using Python version 3.10.6 found at "D:\Program Files\Python310\python.exe"
gyp info find VS using VS2019 (16.11.32802.440) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise"
gyp info find VS run with --verbose for detailed information
gyp info spawn D:\Program Files\Python310\python.exe
gyp info spawn args [
gyp info spawn args   'D:\\Repos\\testsqlite3\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Repos\\testsqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\Repos\\testsqlite3\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\SmartOne\\AppData\\Local\\node-gyp\\Cache\\16.17.0',
gyp info spawn args   '-Dnode_gyp_dir=D:\\Repos\\testsqlite3\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\SmartOne\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.17.0\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\Repos\\testsqlite3',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\Repos\\testsqlite3\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp: binding.gyp not found (cwd: D:\Repos\testsqlite3) while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (D:\Repos\testsqlite3\node_modules\node-gyp\lib\configure.js:284:16)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "D:\\Program\\nodejs\\node.exe" "D:\\Repos\\testsqlite3\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd D:\Repos\testsqlite3
gyp ERR! node -v v16.17.0
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
PS D:\Repos\testsqlite3> 

Still, gyp: binding.gyp not found (cwd: D:\Repos\testsqlite3) while trying to load binding.gyp

@ouliuquan ouliuquan changed the title Can node-gyp support Visual Studio 2022 now? node-gyp error with building @vscode/sqlite3: gyp: binding.gyp not found Sep 13, 2022
@ouliuquan
Copy link
Author

ouliuquan commented Sep 13, 2022

Now I add this problem to @vscode/sqlite3, hope they can help me to find out. #TryGhost/node-sqlite3#1635

@ouliuquan
Copy link
Author

@cclauss Hi Christian, the turely error have been found in here: microsoft/vscode-node-sqlite3#24, I will working on it and fix it, thanks for your patience and answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants