Каждый раз, когда я устанавливаю better-sqlite3
, появляется эта ошибка, и я не знаю, как ее исправить.
PS D:\discordbots\dc.RSG.Bot.2.0> npm install better-sqlite3
> better-sqlite3@5.4.0 install D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3
> node-gyp rebuild
>D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "D:\Data Robin\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "D:\Data Robin\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.
extract_sqlite3
sqlite3.c
win_delay_load_hook.cc
sqlite3.vcxproj -> D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\\sqlite3.lib
better_sqlite3.cpp
win_delay_load_hook.cc
Creating library D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object D:\discordbots\dc.RSG.Bot
.2.0\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 -> D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\\better_sqlite3.node
better_sqlite3.vcxproj -> D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb (Full PDB)
test_extension.c
win_delay_load_hook.cc
Generating code
All 2 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Finished generating code
test_extension.vcxproj -> D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\\test_extension.node
test_extension.vcxproj -> D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\test_extension.pdb (Full PDB)
Copying D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\/better_sqlite3.node to build\better_sqlite3.node
1 file(s) copied.
Copying D:\discordbots\dc.RSG.Bot.2.0\node_modules\better-sqlite3\build\Release\/test_extension.node to build\test_extension.node
1 file(s) copied.
> lzma-native@3.0.8 install D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native
> node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build
node-pre-gyp ERR! Tried to download(404): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.6.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://node-pre-gyp.addaleax.net/lzma-native/lzma_native-v3.0.8-node-v67-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for lzma-native@3.0.8 and node@11.6.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp)
Traceback (most recent call last):
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in <module>
sys.exit(gyp.script_main())
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 545, in script_main
return main(sys.argv[1:])
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 538, in main
return gyp_main(args)
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2025, in GenerateOutput
version=msvs_version)
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 213, in __init__
self.Write()
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSNew.py", line 340, in Write
f.close()
File "D:\Data Robin\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\common.py", line 393, in close
os.rename(self.tmp_path, filename)
WindowsError: [Error 183] Kan geen bestand maken dat al bestaat
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (D:\Data Robin\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "D:\\discordbots\\dc.RSG.Bot.2.0\\node_modules\\node\\bin\\node.exe" "D:\\Data Robin\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\\discordbots\\dc.RSG.Bot.2.0\\node_modules\\lzma-native\\binding-v3.0.8-node-v67-win32-x64\\lzma_native.node" "--module_name=lzma_native" "--module_path=D:\\discordbots\\dc.RSG.Bot.2.0\\node_modules\\lzma-native\\binding-v3.0.8-node-v67-win32-x64" "--msvs_version=2015"
gyp ERR! cwd D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\discordbots\dc.RSG.Bot.2.0\node_modules\node\bin\node.exe D:\Data Robin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node --module_name=lzma_native --module_path=D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64 --msvs_version=2015' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:188:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "D:\\discordbots\\dc.RSG.Bot.2.0\\node_modules\\node\\bin\\node.exe" "D:\\discordbots\\dc.RSG.Bot.2.0\\node_modules\\lzma-native\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native
node-pre-gyp ERR! node -v v11.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute 'D:\discordbots\dc.RSG.Bot.2.0\node_modules\node\bin\node.exe D:\Data Robin\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64\lzma_native.node --module_name=lzma_native --module_path=D:\discordbots\dc.RSG.Bot.2.0\node_modules\lzma-native\binding-v3.0.8-node-v67-win32-x64 --msvs_version=2015' (1)
npm WARN discord.js@11.4.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.4.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.4.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.4.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.4.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.4.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js-commando@0.10.0 requires a peer of sqlite@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN enmap@4.7.0 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN mybot@0.0.1 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lzma-native@3.0.8 install: `node-pre-gyp install --fallback-to-build && node node_modules/rimraf/bin.js build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lzma-native@3.0.8 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\ytrob\AppData\Roaming\npm-cache\_logs\2019-01-25T15_46_28_628Z-debug.log