$ yarn add gpu.js yarn add v1.22.19 [1/4] Resolving packages… [2/4] Fetching packages……
- User
$ yarn add gpu.js yarn add v1.22.19 [1/4] Resolving packages… [2/4] Fetching packages… [3/4] Linking dependencies… warning “@emotion/react > @emotion/babel-plugin@11.9.2” has unmet peer dependency “@babel/core@^7.0.0”. warning “@emotion/react > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.18.6” has unmet peer dependency “@babel/core@^7.0.0-0”. warning " > @mui/x-data-grid@5.17.8" has unmet peer dependency “@mui/system@^5.4.1”. warning " > @mui/x-date-pickers@5.0.0-beta.2" has unmet peer dependency “@mui/system@^5.4.1”. warning " > @typescript-eslint/eslint-plugin@5.59.0" has unmet peer dependency “@typescript-eslint/parser@^5.0.0”. warning " > next-sitemap@3.1.29" has unmet peer dependency “@next/env@*”. warning " > plyr-react@5.1.0" has unmet peer dependency “plyr@^3.7.2”. warning " > react-code-input@3.10.1" has incorrect peer dependency “react@^15.5.4 ||^16.2.0 || ^17.0.0”. warning " > react-code-input@3.10.1" has incorrect peer dependency “react-dom@^15.5.4 ||^16.2.0 || ^17.0.0”. warning " > react-telegram-login@1.1.2" has incorrect peer dependency “react@^16.13.1”. warning " > react-yandex-maps@4.6.0" has incorrect peer dependency “react@^0.14.9 || ^15.x || ^16.x || ^17.x”. warning “react-yandex-maps > create-react-context@0.3.0” has incorrect peer dependency “react@^0.14.0 || ^15.0.0 || ^16.0.0”. warning " > recharts@2.5.0" has unmet peer dependency “prop-types@^15.6.0”. warning “recharts > react-smooth@2.0.2” has unmet peer dependency “prop-types@^15.6.0”. warning " > styled-components@5.3.6" has unmet peer dependency “react-is@>= 16.8.0”. [4/4] Building fresh packages… error D:\IT\front\app\node_modules\gl: Command failed. Exit code: 1 Command: prebuild-install || node-gyp rebuild Arguments: Directory: D:\IT\front\app\node_modules\gl Output: prebuild-install warn install No prebuilt binaries found (target=18.17.0 runtime=node arch=x64 libc= platform=win32) gyp info it worked if it ends with ok gyp info using node-gyp@9.4.0 gyp info using node@18.17.0 | win32 | x64 gyp info find Python using Python version 3.11.4 found at “C:\Python311\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 checking VS2019 (16.11.33801.447) found at: gyp ERR! find VS “C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools” gyp ERR! find VS - found “Visual Studio C++ core features” gyp ERR! find VS - missing any VC++ toolset 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 (D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:122:47) gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:380:14) gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\find-visualstudio.js:401:16 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at D:\IT\front\app\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (node:child_process:427:5) gyp ERR! stack at ChildProcess.emit (node:events:514:28) gyp ERR! stack at maybeClose (node:internal/child_process:1091:16) gyp ERR! System Windows_NT 10.0.22621 gyp ERR! command “C:\Program Files\nodejs\node.exe” “D:\IT\front\app\node_modules\node-gyp\bin\node-gyp.js” “rebuild” gyp ERR! cwd D:\IT\front\app\node_modules\gl gyp ERR! node -v v18.17.0 gyp ERR! node-gyp -v v9.4.0 gyp ERR! not ok info Visit for documentation about this command.
- Assistant
The error message suggests that there was an issue with installing the
gpu.jspackage. The error specifically mentions a failure with theglpackage, which is a dependency ofgpu.js.The error indicates that the installation failed because it couldn't find Visual Studio on your system.
glrequires Visual Studio to be installed in order to build native dependencies.To resolve this issue, you can try the following steps:
-
Make sure you have Visual Studio installed on your system. If it is already installed, make sure it is the latest version and that you have installed the "Desktop development with C++" workload.
-
Open a new command prompt with administrative privileges.
-
Run the following command to set the Visual Studio version for node-gyp:
npm config set msvs_version 2019 --global
-