win-control icon indicating copy to clipboard operation
win-control copied to clipboard

Error, Help!

Open hasmal95 opened this issue 1 year ago • 0 comments

Hello, i run the code but i always i get this error and i don't know how to fix it (Noob xD)

i run it with powershell (Admin) and with cmd in a folder i wanted.... but still nothing....

C:\Windows\System32>yarn add win-control yarn add v1.22.22 info No lockfile found. warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... warning @mapbox/node-pre-gyp > [email protected]: Rimraf versions prior to v4 are no longer supported warning @mapbox/node-pre-gyp > [email protected]: This package is no longer supported. warning @mapbox/node-pre-gyp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported warning @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported. warning @mapbox/node-pre-gyp > npmlog > [email protected]: This package is no longer supported. warning @mapbox/node-pre-gyp > rimraf > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. warning win-control > node-gyp > [email protected]: Glob versions prior to v9 are no longer supported warning win-control > node-gyp > [email protected]: This package is no longer supported. warning win-control > node-gyp > [email protected]: Rimraf versions prior to v4 are no longer supported warning win-control > node-gyp > npmlog > [email protected]: This package is no longer supported. warning win-control > node-gyp > npmlog > [email protected]: This package is no longer supported. warning win-control > node-gyp > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning win-control > node-gyp > request > [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. warning win-control > node-gyp > request > [email protected]: this library is no longer supported warning win-control > [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future warning win-control > node-pre-gyp > [email protected]: This package is no longer supported. warning win-control > node-pre-gyp > [email protected]: Rimraf versions prior to v4 are no longer supported warning win-control > node-pre-gyp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported warning win-control > node-pre-gyp > nopt > [email protected]: This package is no longer supported. [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... error C:\Windows\System32\node_modules\win-control: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: C:\Windows\System32\node_modules\win-control Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using [email protected] node-pre-gyp info using [email protected] | win32 | x64 node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp info check checked for "C:\Windows\System32\node_modules\win-control\lib\binding\wincontrol.node" (not found) node-pre-gyp http GET https://github.com/nosolosoftware/win-control/releases/download/0.3.1/wincontrol-v0.3.1-node-v115-win32-x64.tar.gz node-pre-gyp http 404 https://github.com/nosolosoftware/win-control/releases/download/0.3.1/wincontrol-v0.3.1-node-v115-win32-x64.tar.gz node-pre-gyp WARN Tried to download(404): https://github.com/nosolosoftware/win-control/releases/download/0.3.1/wincontrol-v0.3.1-node-v115-win32-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/nosolosoftware/win-control/releases/download/0.3.1/wincontrol-v0.3.1-node-v115-win32-x64.tar.gz gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info find Python using Python version 3.12.4 found at "C:\Users\Matthaios\AppData\Local\Programs\Python\Python312\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ************************************************************** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ************************************************************** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Windows\System32\node_modules\node-gyp\lib\find-visualstudio.js:121:47) gyp ERR! stack at C:\Windows\System32\node_modules\node-gyp\lib\find-visualstudio.js:74:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Windows\System32\node_modules\node-gyp\lib\find-visualstudio.js:351:14) gyp ERR! stack at C:\Windows\System32\node_modules\node-gyp\lib\find-visualstudio.js:70:14 gyp ERR! stack at C:\Windows\System32\node_modules\node-gyp\lib\find-visualstudio.js:372:16 gyp ERR! stack at C:\Windows\System32\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at C:\Windows\System32\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (node:child_process:430:5) gyp ERR! stack at ChildProcess.emit (node:events:519:28) gyp ERR! stack at maybeClose (node:internal/child_process:1105:16) gyp ERR! System Windows_NT 10.0.22631 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Windows\System32\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Windows\System32\node_modules\win-control\lib\binding\wincontrol.node" "--module_name=wincontrol" "--module_path=C:\Windows\System32\node_modules\win-control\lib\binding" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v115" gyp ERR! cwd C:\Windows\System32\node_modules\win-control gyp ERR! node -v v20.14.0 gyp ERR! node-gyp -v v7.1.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Windows\System32\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Windows\System32\node_modules\win-control\lib\binding\wincontrol.node --module_name=wincontrol --module_path=C:\Windows\System32\node_modules\win-control\lib\binding --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) node-pre-gyp ERR! stack at ChildProcess. (C:\Windows\System32\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (node:events:519:28) node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16) node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5) node-pre-gyp ERR! System Windows_NT 10.0.22631 node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Windows\System32\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Windows\System32\node_modules\win-control node-pre-gyp ERR! node -v v20.14.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Windows\System32\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Windows\System32\node_modules\win-control\lib\binding\wincontrol.node --module_name=wincontrol --module_path=C:\Windows\System32\node_modules\win-control\lib\binding --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v115' (1) info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

hasmal95 avatar Jun 14 '24 16:06 hasmal95