Open ttdev2024 opened 9 months ago
Hello,
I'm getting an error "LNK1127: library is corrupt" while trying to install msnodesqlv8 under the following versions:
msnodesqlv8
msnodesqlv8 3.0.1 node.js v14.21.3 npm 6.14.18 OS: Microsoft Windows Server 2019 Standard python-3.9.1 Visual C++ build tools 2017
Any help or guidance on this issue would be appreciated.
Thanks,
Chris
Here is the output from npm install:
npm install
PS C:\Program Files\iisnode\www\express> npm install > msnodesqlv8@3.0.1 install C:\Program Files\iisnode\www\express\node_modules\msnodesqlv8 > prebuild-install || node-gyp rebuild prebuild-install warn install read ECONNRESET C:\Program Files\iisnode\www\express\node_modules\msnodesqlv8>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. print_variables "..\cflags_cpp -std:=c++17 | arch: AMD64 | link_path: -L. | msodbcsql msodbcsql17 | fileset src\addon.cpp src\bcp.cpp src\BeginTranOperation.cpp src\Binary Column.cpp src\BoundDatum.cpp src\BoundDatumSet.cpp src\CancelOperation.cpp src\CloseOperation.cpp src\CollectOperation.cpp src\Column.cpp src\Connection.c pp src\ConnectionHandles.cpp src\EndTranOperation.cpp src\FreeStatementOperation.cpp src\MutateJS.cpp src\OdbcConnection.cpp src\OdbcConnectionBridge.cpp s rc\OdbcError.cpp src\OdbcHandle.cpp src\OdbcOperation.cpp src\OdbcStatement.cpp src\OdbcStatementCache.cpp src\OpenOperation.cpp src\Operation.cpp src\Oper ationManager.cpp src\PollingModeOperation.cpp src\PrepareOperation.cpp src\ProcedureOperation.cpp src\QueryOperation.cpp src\QueryOperationParams.cpp src\Q ueryPreparedOperation.cpp src\ReadColumnOperation.cpp src\ReadNextResultOperation.cpp src\ResultSet.cpp src\stdafx.cpp src\TimestampColumn.cpp src\UnbindOp eration.cpp src\Utility.cpp" addon.cpp bcp.cpp BeginTranOperation.cpp BinaryColumn.cpp BoundDatum.cpp BoundDatumSet.cpp CancelOperation.cpp CloseOperation.cpp CollectOperation.cpp Column.cpp Connection.cpp ConnectionHandles.cpp EndTranOperation.cpp FreeStatementOperation.cpp MutateJS.cpp OdbcConnection.cpp OdbcConnectionBridge.cpp OdbcError.cpp OdbcHandle.cpp OdbcOperation.cpp OdbcStatement.cpp OdbcStatementCache.cpp OpenOperation.cpp Operation.cpp OperationManager.cpp PollingModeOperation.cpp PrepareOperation.cpp ProcedureOperation.cpp QueryOperation.cpp QueryOperationParams.cpp QueryPreparedOperation.cpp ReadColumnOperation.cpp ReadNextResultOperation.cpp ResultSet.cpp stdafx.cpp TimestampColumn.cpp UnbindOperation.cpp Utility.cpp win_delay_load_hook.cc C:\\Users\\my-username\\AppData\\Local\\node-gyp\\Cache\\14.21.3\\x64\\node.lib : fatal error LNK1127: library is corrupt [C:\Program Files\iisnode\www \express\node_modules\msnodesqlv8\build\sqlserverv8.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Program Files\iisnode\www\express\node_modules\msnodesqlv8 gyp ERR! node -v v14.21.3 gyp ERR! node-gyp -v v5.1.1 gyp ERR! not ok npm WARN update-browserslist-db@1.0.10 requires a peer of browserslist@>= 4.21.0 but none is installed. You must install peer dependencies yourself. npm WARN server@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! msnodesqlv8@3.0.1 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the msnodesqlv8@3.0.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\my-username\AppData\Roaming\npm-cache\_logs\2024-02-09T14_14_17_123Z-debug.log
Same issue here
Hello,
I'm getting an error "LNK1127: library is corrupt" while trying to install
msnodesqlv8
under the following versions:msnodesqlv8 3.0.1 node.js v14.21.3 npm 6.14.18 OS: Microsoft Windows Server 2019 Standard python-3.9.1 Visual C++ build tools 2017
Any help or guidance on this issue would be appreciated.
Thanks,
Chris
Here is the output from
npm install
: