UniversalDataTool / universal-data-tool

Collaborate & label any type of data, images, text, or documents, in an easy web interface or desktop app.
https://universaldatatool.com
MIT License
1.92k stars 187 forks source link

Can not install UDT with react #527

Open EtezazIzam44 opened 2 years ago

EtezazIzam44 commented 2 years ago

I'm trying to download UDT but it's still giving the same errors after updating all Packages Can you help? This is the error:

PS E:\Etezaz\PropertyFinder> npm i universal-data-tool npm WARN deprecated transformation-matrix-js@2.7.6: Package no longer supported. Contact support@npmjs.com for more info. npm WARN deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest npm WARN deprecated highlight.js@9.15.10: Version no longer supported. Upgrade to @latest npm WARN deprecated core-js@2.6.12: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. npm ERR! code 1 npm ERR! path E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild npm ERR! Warning: Missing input files: npm ERR! C:\GTK\bin\libcairo-2.dll npm ERR! C:\GTK\bin\libfontconfig-1.dll npm ERR! C:\GTK\bin\libpng14-14.dll npm ERR! C:\GTK\bin\libexpat-1.dll npm ERR! C:\GTK\bin\zlib1.dll npm ERR! C:\GTK\bin\libfreetype-6.dll npm ERR! Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch. npm ERR! Canvas.cc npm ERR! E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas\src\Canvas.h(19,10): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory [E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas\build\canvas.vcxproj] npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.9.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.9.1 found at "C:\Program Files\Python39\python.exe" npm ERR! gyp info find VS using VS2019 (16.8.31005.135) found at: npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" npm ERR! gyp info find VS run with --verbose for detailed information npm ERR! (node:18408) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. npm ERR! (Use node --trace-deprecation ... to show where the warning was created) npm ERR! gyp info spawn C:\Program Files\Python39\python.exe npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\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 'E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas\build\config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args 'C:\Users\User\AppData\Local\node-gyp\Cache\16.9.1\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\User\AppData\Local\node-gyp\Cache\16.9.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\User\\AppData\\Local\\node-gyp\\Cache\\16.9.1\\<(target_arch)\\node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas', 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 'E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas\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\Professional\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\Professional\MSBuild\Current\Bin\MSBuild.exe failed with exit code: 1 npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:394:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) npm ERR! gyp ERR! System Windows_NT 10.0.18363 npm ERR! 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" npm ERR! gyp ERR! cwd E:\Etezaz\PropertyFinder\node_modules\universal-data-tool\node_modules\canvas npm ERR! gyp ERR! node -v v16.9.1 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2021-09-26T13_24_26_864Z-debug.log

aubreyyan commented 2 years ago

i cannot reproduce this on node 14.18.1 and npm 8.5.5