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

Is it possible to switch Visual Studio version? #1659

Closed
takase1121 opened this issue Feb 5, 2019 · 5 comments
Closed

Is it possible to switch Visual Studio version? #1659

takase1121 opened this issue Feb 5, 2019 · 5 comments

Comments

@takase1121
Copy link

Sorry, but just wanted to ask a question. If I have both buildtools v140 (VS2015) and v150 (VS2017), can I just do npm config set msvs_version <version> to switch between them?
Since some modules need VS2015 to compile, now windows build tools defaults to VS2017. It'll be nice if node-gyp can detect it automatically and switch too. Thanks!

@joaocgreis
Copy link
Member

@takase1121 yes, setting msvs_version to 2015 or 2017 should work well.

What modules require VS2015?

@takase1121
Copy link
Author

better-sqlite3. I talked to the owner; he doesn't seem to have intention to retarget the project to v150 buildtools

@joaocgreis
Copy link
Member

I can compile better-sqlite3 fine with VS2017. Perhaps you don't have the "Desktop development with C++" workload installed in Visual Studio Installer? You can run npm i better-sqlite3 --verbose to see if VS2017 is being user or why not.

@takase1121
Copy link
Author

Now it does works right. Maybe node-gyp switched to VS2015 automatically? Since I have both VS2017 and VS2015

npm info it worked if it ends with ok
npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
npm verb cli   'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   'i',
npm verb cli   'better-sqlite3',
npm verb cli   '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb npm-session 3d9d41b34c32c0af
npm http fetch GET 304 https://registry.npmjs.org/better-sqlite3 313ms (from cache)
npm timing stage:loadCurrentTree Completed in 466ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 64ms
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 40ms
npm timing stage:loadIdealTree Completed in 128ms
npm timing stage:generateActionsToTake Completed in 21ms
npm verb correctMkdir C:\Users\User\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing
npm verb lock using C:\Users\User\AppData\Roaming\npm-cache\_locks\staging-c31caa545a8ab457.lock for C:\Users\User\Desktop\node_modules\.staging
npm timing action:extract Completed in 135ms
npm info lifecycle [email protected]~preuninstall: [email protected]
npm info lifecycle [email protected]~uninstall: [email protected]
npm verb unbuild rmStuff [email protected] from C:\Users\User\Desktop\node_modules
npm info lifecycle [email protected]~postuninstall: [email protected]
npm timing action:unbuild Completed in 2ms
npm timing action:remove Completed in 60ms
npm timing action:finalize Completed in 3ms
npm timing action:refresh-package-json Completed in 49ms
npm info lifecycle [email protected]~preinstall: [email protected]
npm timing action:preinstall Completed in 1ms
npm info linkStuff [email protected]
npm timing action:build Completed in 2ms
npm info lifecycle [email protected]~install: [email protected]

> [email protected] install C:\Users\User\Desktop\node_modules\better-sqlite3
> node-gyp rebuild


C�L�I�N�K� �C:\Users\User\Desktop\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) 
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli   'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
gyp verb cli   'rebuild' ]
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:13:12)\n    at F (C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:68:19)\n    at E (C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:80:29)\n    at C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:89:16\n    at C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\isexe\\index.js:42:5\n    at C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:154:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Python27\python.EXE
gyp verb check python version `C:\Python27\python.EXE -c "import sys; print "2.7.15
gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.15.1
gyp verb command install [ '10.15.1' ]
gyp verb install input version string "10.15.1"
gyp verb install installing version: 10.15.1
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: 10.15.1
gyp verb build dir attempting to create "build" dir: C:\Users\User\Desktop\node_modules\better-sqlite3\build
gyp verb build dir "build" dir needed to be created? C:\Users\User\Desktop\node_modules\better-sqlite3\build
gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.Windows10SDK.17763
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017   - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017   - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: C:\Users\User\Desktop\node_modules\better-sqlite3\build\config.gypi
gyp verb config.gypi checking for gypi file: C:\Users\User\Desktop\node_modules\better-sqlite3\config.gypi
gyp verb common.gypi checking for gypi file: C:\Users\User\Desktop\node_modules\better-sqlite3\common.gypi
gyp verb gyp gyp format was not specified; forcing "msvs"
gyp info spawn C:\Python27\python.EXE
gyp info spawn args [ 'C:\\Users\\User\\AppData\\Roaming\\npm\\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   '-G',
gyp info spawn args   'msvs_version=2015',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\User\\Desktop\\node_modules\\better-sqlite3\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\User\\.node-gyp\\10.15.1\\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\\User\\.node-gyp\\10.15.1',
gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\Users\\User\\.node-gyp\\10.15.1\\<(target_arch)\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\User\\Desktop\\node_modules\\better-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   'C:\\Users\\User\\Desktop\\node_modules\\better-sqlite3\\build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir C:\Users\User\.node-gyp\10.15.1
gyp verb found first Solution file build/binding.sln
gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 2/7/2019 11:14:17 AM.
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\binding.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x64".
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\binding.sln" (1) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj.metaproj" (2) on node 1 (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj.metaproj" (2) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj.metaproj" (3) on node 1 (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj.metaproj" (3) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\locate_sqlite3.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\locate_sqlite3\".
  Creating directory "C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\".
  Creating directory "Release\obj\locate_sqlite3\locate_sqlite3.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\locate_sqlite3\locate_sqlite3.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ComputeCustomBuildOutput:
  Creating directory "C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3\".
CustomBuild:
  extract_sqlite3
FinalizeBuildStatus:
  Deleting file "Release\obj\locate_sqlite3\locate_sqlite3.tlog\unsuccessfulbuild".
  Touching "Release\obj\locate_sqlite3\locate_sqlite3.tlog\locate_sqlite3.lastbuildstate".
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\locate_sqlite3.vcxproj" (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj.metaproj" (3) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj" (5) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\sqlite3\".
  Creating directory "Release\obj\sqlite3\sqlite3.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\sqlite3\sqlite3.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\User\.node-gyp\10.15.1\include\node" /I"C:\Users\User\.node-gyp\10.15.1\src" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\config" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\openssl\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\uv\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\zlib" /I"C:\Users\User\.node-gyp\10.15.1\deps\v8\include" /I"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=sqlite3 /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D SQLITE_THREADSAFE=0 /D SQLITE_DEFAULT_MEMSTATUS=0 /D SQLITE_OMIT_DEPRECATED /D SQLITE_OMIT_GET_TABLE /D SQLITE_OMIT_TCL_VARIABLE /D SQLITE_OMIT_PROGRESS_CALLBACK /D SQLITE_TRACE_SIZE_LIMIT=32 /D "SQLITE_DEFAULT_CACHE_SIZE=-16000" /D SQLITE_DEFAULT_FOREIGN_KEYS=1 /D SQLITE_DEFAULT_WAL_SYNCHRONOUS=1 /D SQLITE_USE_URI=1 /D SQLITE_ENABLE_COLUMN_METADATA /D SQLITE_ENABLE_UPDATE_DELETE_LIMIT /D SQLITE_ENABLE_STAT4 /D SQLITE_ENABLE_FTS3_PARENTHESIS /D SQLITE_ENABLE_FTS3 /D SQLITE_ENABLE_FTS4 /D SQLITE_ENABLE_FTS5 /D SQLITE_ENABLE_JSON1 /D SQLITE_ENABLE_RTREE /D SQLITE_INTROSPECTION_PRAGMAS /D SQLITE_SOUNDEX /D NDEBUG /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\sqlite3\\" /Fd"Release\obj\sqlite3\sqlite3.pdb" /Gd /TC /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue "C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3\sqlite3.c"
  sqlite3.c
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\User\.node-gyp\10.15.1\include\node" /I"C:\Users\User\.node-gyp\10.15.1\src" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\config" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\openssl\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\uv\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\zlib" /I"C:\Users\User\.node-gyp\10.15.1\deps\v8\include" /I"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=sqlite3 /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D SQLITE_THREADSAFE=0 /D SQLITE_DEFAULT_MEMSTATUS=0 /D SQLITE_OMIT_DEPRECATED /D SQLITE_OMIT_GET_TABLE /D SQLITE_OMIT_TCL_VARIABLE /D SQLITE_OMIT_PROGRESS_CALLBACK /D SQLITE_TRACE_SIZE_LIMIT=32 /D "SQLITE_DEFAULT_CACHE_SIZE=-16000" /D SQLITE_DEFAULT_FOREIGN_KEYS=1 /D SQLITE_DEFAULT_WAL_SYNCHRONOUS=1 /D SQLITE_USE_URI=1 /D SQLITE_ENABLE_COLUMN_METADATA /D SQLITE_ENABLE_UPDATE_DELETE_LIMIT /D SQLITE_ENABLE_STAT4 /D SQLITE_ENABLE_FTS3_PARENTHESIS /D SQLITE_ENABLE_FTS3 /D SQLITE_ENABLE_FTS4 /D SQLITE_ENABLE_FTS5 /D SQLITE_ENABLE_JSON1 /D SQLITE_ENABLE_RTREE /D SQLITE_INTROSPECTION_PRAGMAS /D SQLITE_SOUNDEX /D NDEBUG /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\sqlite3\\" /Fd"Release\obj\sqlite3\sqlite3.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"
  win_delay_load_hook.cc
Lib:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\Lib.exe /OUT:"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\sqlite3.lib" /NOLOGO /MACHINE:X64 /LTCG:INCREMENTAL Release\obj\sqlite3\sqlite3.obj
  Release\obj\sqlite3\win_delay_load_hook.obj
  sqlite3.vcxproj -> C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\\sqlite3.lib
FinalizeBuildStatus:
  Deleting file "Release\obj\sqlite3\sqlite3.tlog\unsuccessfulbuild".
  Touching "Release\obj\sqlite3\sqlite3.tlog\sqlite3.lastbuildstate".
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj" (default targets).
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\deps\sqlite3.vcxproj.metaproj" (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj.metaproj" (2) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj" (6) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\better_sqlite3\".
  Creating directory "Release\obj\better_sqlite3\better_sqlite3.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\better_sqlite3\better_sqlite3.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\User\.node-gyp\10.15.1\include\node" /I"C:\Users\User\.node-gyp\10.15.1\src" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\config" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\openssl\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\uv\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\zlib" /I"C:\Users\User\.node-gyp\10.15.1\deps\v8\include" /I"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=better_sqlite3 /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D BUILDING_NODE_EXTENSION /D NDEBUG /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\better_sqlite3\\" /Fd"Release\obj\better_sqlite3\vc140.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue ..\src\better_sqlite3.cpp "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"
  better_sqlite3.cpp
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\better_sqlite3.node" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\User\.node-gyp\10.15.1\x64\node.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /LTCG:INCREMENTAL /DLL Release\obj\better_sqlite3\better_sqlite3.obj
  Release\obj\better_sqlite3\win_delay_load_hook.obj
  "C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\sqlite3.lib"
     Creating library C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\better_sqlite3.exp
  Generating code
  All 4285 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  better_sqlite3.vcxproj -> C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\\better_sqlite3.node
  better_sqlite3.vcxproj -> C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb (Full PDB)
FinalizeBuildStatus:
  Deleting file "Release\obj\better_sqlite3\better_sqlite3.tlog\unsuccessfulbuild".
  Touching "Release\obj\better_sqlite3\better_sqlite3.tlog\better_sqlite3.lastbuildstate".
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj" (default targets).
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\better_sqlite3.vcxproj.metaproj" (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\binding.sln" (1) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj.metaproj" (7) on node 1 (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj.metaproj" (7) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\test_extension.vcxproj.metaproj" (8) on node 1 (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\test_extension.vcxproj.metaproj" (8) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\test_extension.vcxproj" (9) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\test_extension\".
  Creating directory "Release\obj\test_extension\test_extension.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\test_extension\test_extension.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\User\.node-gyp\10.15.1\include\node" /I"C:\Users\User\.node-gyp\10.15.1\src" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\config" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\openssl\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\uv\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\zlib" /I"C:\Users\User\.node-gyp\10.15.1\deps\v8\include" /I"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=test_extension /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D BUILDING_NODE_EXTENSION /D NDEBUG /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\test_extension\\" /Fd"Release\obj\test_extension\vc140.pdb" /Gd /TC /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue ..\deps\test_extension.c
  test_extension.c
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe /c /I"C:\Users\User\.node-gyp\10.15.1\include\node" /I"C:\Users\User\.node-gyp\10.15.1\src" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\config" /I"C:\Users\User\.node-gyp\10.15.1\deps\openssl\openssl\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\uv\include" /I"C:\Users\User\.node-gyp\10.15.1\deps\zlib" /I"C:\Users\User\.node-gyp\10.15.1\deps\v8\include" /I"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\obj\global_intermediate\sqlite3" /Z7 /nologo /W3 /WX- /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=test_extension /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D BUILDING_NODE_EXTENSION /D NDEBUG /D _WINDLL /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\test_extension\\" /Fd"Release\obj\test_extension\vc140.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /errorReport:queue "C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc"
  win_delay_load_hook.cc
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\test_extension.node" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\User\.node-gyp\10.15.1\x64\node.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\test_extension.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /LTCG:INCREMENTAL /DLL Release\obj\test_extension\test_extension.obj
  Release\obj\test_extension\win_delay_load_hook.obj
  "C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\sqlite3.lib"
  Generating code
  All 2 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  test_extension.vcxproj -> C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\\test_extension.node
  test_extension.vcxproj -> C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\test_extension.pdb (Full PDB)
FinalizeBuildStatus:
  Deleting file "Release\obj\test_extension\test_extension.tlog\unsuccessfulbuild".
  Touching "Release\obj\test_extension\test_extension.tlog\test_extension.lastbuildstate".
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\test_extension.vcxproj" (default targets).
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\test_extension.vcxproj.metaproj" (default targets).
Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj.metaproj" (7) is building "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj" (10) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\obj\place_resulting_binaries\".
  Creating directory "Release\obj\place_resulting_binaries\place_re.8440907C.tlog\".
InitializeBuildStatus:
  Creating "Release\obj\place_resulting_binaries\place_re.8440907C.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Copying C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\/better_sqlite3.node to build\better_sqlite3.node
          1 file(s) copied.
  Copying C:\Users\User\Desktop\node_modules\better-sqlite3\build\Release\/test_extension.node to build\test_extension.node
          1 file(s) copied.
FinalizeBuildStatus:
  Deleting file "Release\obj\place_resulting_binaries\place_re.8440907C.tlog\unsuccessfulbuild".
  Touching "Release\obj\place_resulting_binaries\place_re.8440907C.tlog\place_resulting_binaries.lastbuildstate".
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj" (default targets).
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\place_resulting_binaries.vcxproj.metaproj" (default targets).
Done Building Project "C:\Users\User\Desktop\node_modules\better-sqlite3\build\binding.sln" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:31.02
gyp info ok 
npm verb lifecycle [email protected]~install: unsafe-perm in lifecycle true
npm verb lifecycle [email protected]~install: PATH: C:\Users\User\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\User\Desktop\node_modules\better-sqlite3\node_modules\.bin;C:\Users\User\Desktop\node_modules\.bin;C:\Cmder\bin;C:\Cmder\vendor\bin;C:\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\cmder\vendor\conemu-maximus5;C:\cmder\vendor\conemu-maximus5\ConEmu;C:\depot-tools;C:\Python27\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Python37\Scripts\;C:\Program Files\Python37\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Go\bin;C:\Program Files\7-Zip;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files (x86)\NoteBook FanControl\;C:\Program Files\Git LFS;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files (x86)\Brackets\command;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\ffmpeg\bin;C:\mpv;C:\upx;C:\youtube-dl;C:\lua\;C:\Program Files (x86)\LuaRocks;C:\msys64\mingw64\bin;C:\Users\User\AppData\Local\atom\bin;C:\Program Files (x86)\Minimal ADB and Fastboot\;C:\Users\User\go\bin;C:\Neovim\bin;C:\Program Files (x86)\Java\jre7\bin;C:\Users\User\AppData\Local\hyper\app-2.0.0\resources\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files\heroku\bin;C:\Users\User\AppData\Roaming\npm;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Cmder
npm verb lifecycle [email protected]~install: CWD: C:\Users\User\Desktop\node_modules\better-sqlite3
npm timing audit submit Completed in 1025ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 1025ms
npm timing audit body Completed in 0ms
npm timing action:install Completed in 35949ms
npm info lifecycle [email protected]~postinstall: [email protected]
npm timing action:postinstall Completed in 2ms
npm verb unlock done using C:\Users\User\AppData\Roaming\npm-cache\_locks\staging-c31caa545a8ab457.lock for C:\Users\User\Desktop\node_modules\.staging
npm timing stage:executeActions Completed in 36222ms
npm timing stage:rollbackFailedOptional Completed in 1ms
npm timing stage:runTopLevelLifecycles Completed in 36861ms
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\User\Desktop\package.json'
npm info lifecycle undefined~preshrinkwrap: undefined
npm info lifecycle undefined~shrinkwrap: undefined
npm verb shrinkwrap skipping write for package-lock.json because there were no changes.
npm info lifecycle undefined~postshrinkwrap: undefined
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\User\Desktop\package.json'
npm verb enoent This is related to npm not being able to find a file.
npm verb enoent 
npm WARN [email protected] requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of bufferutil@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of zlib-sync@^0.1.4 but none is installed. You must install peer dependencies yourself.
npm WARN Desktop No description
npm WARN Desktop No repository field.
npm WARN Desktop No README data
npm WARN Desktop No license field.

+ [email protected]
updated 1 package and audited 119 packages in 36.946s
found 0 vulnerabilities

npm verb exit [ 0, true ]
npm timing npm Completed in 38210ms
npm info ok 

that is what I got from npm i better-sqlite3 --verbose > log.log 2>&1

@joaocgreis
Copy link
Member

The relevant part is

gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.Windows10SDK.17763
gyp verb find vs2017   - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64
gyp verb find vs2017   - Found Microsoft.VisualStudio.VC.MSBuild.Base
gyp verb find vs2017   - Using this installation with Windows 10 SDK
gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools

This confirms VS2017 is being used. Perhaps something was not in place before, would be good to know what but it's probably not possible to find out now.

It seems this issue can be closed, but feel free to add anything else. We can always reopen. Thanks!

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