416rehman / splite

SPLITE - Discord Bot with Slash Command Handler and Endpoint Handler, supporting AI, Music, Moderation, and more!
GNU General Public License v3.0
104 stars 29 forks source link

npm install error #57

Open Manidarean5 opened 1 year ago

Manidarean5 commented 1 year ago

Describe the bug When i put npm install in the console the console say to me that:

npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated @discordjs/collection@0.1.6: no longer supported npm WARN deprecated @discordjs/form-data@3.0.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin. npm WARN deprecated uuid@3.4.0: 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 request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated discord-player@5.4.0: This version is no longer supported. Please switch to v6.x npm WARN deprecated node-pre-gyp@0.11.0: 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 npm WARN deprecated weky@3.1.8: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN deprecated discord.js@12.5.3: no longer supported npm ERR! code 1 npm ERR! path C:\Users\MACHENIKE\Documents\ManiDex BOT\node_modules\better-sqlite3 npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || npm run build-release npm ERR! > better-sqlite3@7.6.2 build-release npm ERR! > node-gyp rebuild --release npm ERR! prebuild-install warn install No prebuilt binaries found (target=19.0.0 runtime=node arch=x64 libc= platform=win32) npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.3.0 npm ERR! gyp info using node@19.0.0 | win32 | x64 npm ERR! gyp info find Python using Python version 3.11.3 found at "C:\Users\MACHENIKE\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS checking VS2022 (17.2.32630.192) found at: npm ERR! gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Professional" npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features" npm ERR! gyp ERR! find VS - missing any VC++ toolset npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use npm ERR! gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18 npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:369:14) npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2015 (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:353:14) npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:67:12 npm ERR! gyp ERR! stack at VisualStudioFinder.parseData (C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:237:5) npm ERR! gyp ERR! stack at C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:143:14 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:404:7) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28) npm ERR! gyp ERR! System Windows_NT 10.0.22621 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\MACHENIKE\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--release"
npm ERR! gyp ERR! cwd C:\Users\MACHENIKE\Documents\ManiDex BOT\node_modules\better-sqlite3 npm ERR! gyp ERR! node -v v19.0.0 npm ERR! gyp ERR! node-gyp -v v9.3.0 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MACHENIKE\AppData\Local\npm-cache_logs\2023-07-08T15_56_33_147Z-debug-0.log

To Reproduce Steps to reproduce the behavior:

  1. Do 'Open console'
  2. Type 'npm install
  3. Run it
  4. See error

Expected behavior Install all the packages

Screenshots (OPTIONAL) If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

letmefocus commented 1 year ago

@Manidarean5 run this on ubuntu, using node 16 you shouldnt have any problem after that :)

4ngel2769 commented 3 months ago

@Manidarean5 this is an issue when using node-gyp on windows.

See https://github.com/nodejs/node-gyp#on-windows Make sure you have VisualStudio2022 installed. Try also using a newer version of nodejs & npm to install dependencies (node18+)