Music-bot icon indicating copy to clipboard operation
Music-bot copied to clipboard

NPM I

Open ShiromChopra opened this issue 9 months ago • 1 comments

AN ERROR IS COMING WHILE RUNNING THIS CMD

npm warn deprecated [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. npm warn deprecated [email protected]: This package is no longer supported. 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 [email protected]: This package is no longer supported. npm warn cleanup Failed to remove some directories [ npm warn cleanup [ npm warn cleanup '\\?\C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\ffmpeg-static', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\ffmpeg-static'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\ffmpeg-static' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\?\C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules', npm warn cleanup [Error: EBUSY: resource busy or locked, rmdir 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\ffmpeg-static'] { npm warn cleanup errno: -4082, npm warn cleanup code: 'EBUSY', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\ffmpeg-static' npm warn cleanup } npm warn cleanup ], npm warn cleanup [ npm warn cleanup '\\?\C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\@bufbuild', npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@bufbuild\protobuf\dist\cjs\wkt\gen\google\protobuf'] { npm warn cleanup errno: -4048, npm warn cleanup code: 'EPERM', npm warn cleanup syscall: 'rmdir', npm warn cleanup path: 'C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\@bufbuild\protobuf\dist\cjs\wkt\gen\google\protobuf' npm warn cleanup } npm warn cleanup ] npm warn cleanup ] npm error code 1 npm error path C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus npm error command failed npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm error Failed to execute 'D:\node.exe D:\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown\opus.node --module_name=opus --module_path=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown --napi_version=10 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm error node-pre-gyp info it worked if it ends with ok npm error node-pre-gyp info using [email protected] npm error node-pre-gyp info using [email protected] | win32 | x64 npm error node-pre-gyp info check checked for "C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown\opus.node" (not found) npm error node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-win32-x64-unknown-unknown.tar.gz npm error node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-win32-x64-unknown-unknown.tar.gz npm error node-pre-gyp WARN Pre-built binaries not installable for @discordjs/[email protected] and [email protected] (node-v127 ABI, unknown) (falling back to source compile with node-gyp) npm error node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.9.0/opus-v0.9.0-node-v127-napi-v3-win32-x64-unknown-unknown.tar.gz npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | win32 | x64 npm error gyp info ok npm error gyp info it worked if it ends with ok npm error gyp info using [email protected] npm error gyp info using [email protected] | win32 | x64 npm error gyp info find Python using Python version 3.11.9 found at "C:\Users\aryan\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe" npm error gyp ERR! find VS npm error gyp ERR! find VS msvs_version not set from command line or npm config npm error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. npm error gyp ERR! find VS npm error gyp ERR! find VS Failure details: undefined npm error gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details. npm error gyp ERR! find VS npm error gyp ERR! find VS Failure details: undefined npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2017 as it is only supported up to Node.js 21 npm error gyp ERR! find VS not looking for VS2015 as it is only supported up to Node.js 18 npm error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm error gyp ERR! find VS npm error gyp ERR! find VS ************************************************************** npm error gyp ERR! find VS You need to install the latest version of Visual Studio npm error gyp ERR! find VS including the "Desktop development with C++" workload. npm error gyp ERR! find VS For more information consult the documentation at: npm error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm error gyp ERR! find VS ************************************************************** npm error gyp ERR! find VS npm error gyp ERR! configure error npm error gyp ERR! stack Error: Could not find any Visual Studio installation to use npm error gyp ERR! stack at VisualStudioFinder.fail (D:\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:118:11) npm error gyp ERR! stack at VisualStudioFinder.findVisualStudio (D:\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:17) npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:105:5) npm error gyp ERR! stack at async createBuildDir (D:\node_modules\npm\node_modules\node-gyp\lib\configure.js:112:18) npm error gyp ERR! stack at async run (D:\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18) npm error gyp ERR! System Windows_NT 10.0.22631 npm error gyp ERR! command "D:\node.exe" "D:\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown\opus.node" "--module_name=opus" "--module_path=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3" npm error gyp ERR! cwd C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus npm error gyp ERR! node -v v22.14.0 npm error gyp ERR! node-gyp -v v11.0.0 npm error gyp ERR! not ok npm error node-pre-gyp ERR! build error npm error node-pre-gyp ERR! stack Error: Failed to execute 'D:\node.exe D:\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown\opus.node --module_name=opus --module_path=C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus\prebuild\node-v127-napi-v3-win32-x64-unknown-unknown --napi_version=10 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1) npm error node-pre-gyp ERR! stack at ChildProcess. (C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\node-pre-gyp\lib\util\compile.js:85:20) npm error node-pre-gyp ERR! stack at ChildProcess.emit (node:events:518:28) npm error node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1101:16) npm error node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5) npm error node-pre-gyp ERR! System Windows_NT 10.0.22631 npm error node-pre-gyp ERR! command "D:\node.exe" "C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules\@discordjs\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" npm error node-pre-gyp ERR! cwd C:\Users\aryan\Downloads\Music-bot\Music-bot\node_modules@discordjs\opus npm error node-pre-gyp ERR! node -v v22.14.0 npm error node-pre-gyp ERR! node-pre-gyp -v v0.4.5 npm error node-pre-gyp ERR! not ok npm error A complete log of this run can be found in: C:\Users\aryan\AppData\Local\npm-cache_logs\2025-03-25T22_09_28_501Z-debug-0.log

C:\Users\aryan\Downloads\Music-bot\Music-bot>

ShiromChopra avatar Mar 25 '25 22:03 ShiromChopra

I found updating to node 20.19.5 fixes this

MantisToboggan2 avatar Sep 04 '25 03:09 MantisToboggan2