Hello, I get following errors while running "install.bat"
`npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\validator\es'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\validator\es'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
npm ERR! node-dpapi.cpp
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan_callbacks.h(55,23): error C2039: 'AccessorSignature': is not a member of 'v8' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8.h(71): message : see declaration of 'v8' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan_callbacks.h(55,40): error C2065: 'AccessorSignature': undeclared identifier [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan_callbacks.h(55,13): error C2923: 'v8::Local': 'AccessorSignature' is not a valid template type argument for parameter 'T' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan_callbacks.h(55): message : see declaration of 'AccessorSignature' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan_callbacks.h(55,42): error C2955: 'v8::Local': use of class template requires template argument list [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(684,37): warning C4996: 'v8::Isolate::IdleNotificationDeadline': Use MemoryPressureNotification() to influence the GC schedule. [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,14): error C2955: 'v8::Local': use of class template requires template argument list [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,34): error C2641: cannot deduce template arguments for 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,36): error C2780: 'v8::Local v8::Local(T *)': expects 1 arguments - 0 provided [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(331): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,36): error C2780: 'v8::Local v8::Local(v8::Local)': expects 1 arguments - 0 provided [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(195): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,34): error C2783: 'v8::Local v8::Local(void)': could not deduce template argument for 'T' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(192): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2518,36): error C2780: 'v8::Local v8::Local(v8::Local)': expects 1 arguments - 0 provided [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-local-handle.h(190): message : see declaration of 'v8::Local' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2544,6): error C2664: 'void v8::ObjectTemplate::SetAccessor(v8::Localv8::String,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Localv8::Value,v8::AccessControl,v8::PropertyAttribute,v8::SideEffectType,v8::SideEffectType)': cannot convert argument 2 from 'Nan::imp::NativeGetter' to 'v8::AccessorGetterCallback' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\nan\nan.h(2546,7): message : This conversion requires a reinterpret_cast, a C-style cast or function-style cast [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0\include\node\v8-template.h(809,8): message : see declaration of 'v8::ObjectTemplate::SetAccessor' [C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\node-dpapi.vcxproj]
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.0 found at "C:\Python312\python.exe"
npm ERR! gyp info find VS using VS2019 (16.11.34114.132) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python312\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\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 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.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=C:\Users\karti\AppData\Local\node-gyp\Cache\20.9.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\karti\\AppData\\Local\\node-gyp\\Cache\\20.9.0\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi',
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 'C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build/binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\node-gyp\lib\build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd C:\Users\karti\OneDrive\Desktop\TurkoRat-TELEGRAM-main\node_modules\win-dpapi
npm ERR! gyp ERR! node -v v20.9.0
npm ERR! gyp ERR! node-gyp -v v9.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in: C:\Users\karti\AppData\Local\npm-cache_logs\2023-10-29T07_40_03_653Z-debug-0.log`
I have installed Visual Studio 2019 and also all the C++ pre-requisites. What am I doing wrong ?