Errors when installing
when running npm install --save @u4/opencv4nodejs i get this error
windows 11 Node 18.13.0 python 3.12.4 various diffrent versions of windows build tools node-gyp installed globaly
I have tried , "opencv4nodejs": { "disableAutoBuild": "1" } in the package.json and as a env variable and this just gives the same result
I know its trying to build because it takes about 10 mins to get this error after running the command and my CPU usage is high
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm WARN deprecated [email protected]: This package is no longer supported.
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm WARN deprecated [email protected]: This package is no longer supported.
npm ERR! code 1
npm ERR! path C:\Users\Ross\repos\test\node_modules@u4\opencv4nodejs
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR!
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.4 found at "C:\Python312\python.exe"
npm ERR! gyp info find VS using VS2022 (17.10.35013.160) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\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\Ross\repos\test\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\Ross\repos\test\node_modules\@u4\opencv4nodejs\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Ross\repos\test\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\Ross\AppData\Local\node-gyp\Cache\18.13.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\Ross\AppData\Local\node-gyp\Cache\18.13.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\Ross\repos\test\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\Ross\\AppData\\Local\\node-gyp\\Cache\\18.13.0\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=C:\Users\Ross\repos\test\node_modules\@u4\opencv4nodejs',
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\Ross\repos\test\node_modules\@u4\opencv4nodejs\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! Traceback (most recent call last):
npm ERR! File "C:\Users\Ross\repos\test\node_modules\node-gyp\gyp\gyp_main.py", line 45, in gyp failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.
Fixed - Downgraded to Python 3.10