discordjs / opus

Native opus bindings for node
MIT License
192 stars 55 forks source link

Instalation error #109

Closed phant0m2290 closed 2 years ago

phant0m2290 commented 2 years ago

Please describe the problem you are having in as much detail as possible: When I try to install it it gives an error

Include a reproducible code sample here, if possible: npm I github:discordjs/opus

Further details: error:

C:\Users\titul\Documents\GitHub\Coli-bot>npm install @discordjs/opus
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: prism-media@1.3.2
npm WARN Found: @discordjs/opus@0.6.0
npm WARN node_modules/@discordjs/opus
npm WARN   @discordjs/opus@"github:discordjs/opus" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peerOptional @discordjs/opus@"^0.5.0" from prism-media@1.3.2
npm WARN node_modules/prism-media
npm WARN   prism-media@"^1.2.9" from discord.js@12.5.3
npm WARN   node_modules/discord.js
npm WARN
npm WARN Conflicting peer dependency: @discordjs/opus@0.5.3
npm WARN node_modules/@discordjs/opus
npm WARN   peerOptional @discordjs/opus@"^0.5.0" from prism-media@1.3.2
npm WARN   node_modules/prism-media
npm WARN     prism-media@"^1.2.9" from discord.js@12.5.3
npm WARN     node_modules/discord.js
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'coli-bot@1.0.0',
npm WARN EBADENGINE   required: { node: '16.x', npm: '7.21.0' },
npm WARN EBADENGINE   current: { node: 'v16.9.0', npm: '7.21.1' }
npm WARN EBADENGINE }
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated @sapphire/snowflake@1.3.6: This version has been automatically deprecated by @favware/npm-deprecate. Please use a newer version.
npm WARN deprecated uuid@3.2.1: 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 uuid@3.3.2: 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 discord.js@12.5.3: no longer supported
npm WARN deprecated discord-api-types@0.18.1: No longer supported. Install the latest release (0.20.2)
npm ERR! code 1
npm ERR! path C:\Users\titul\Documents\GitHub\Coli-bot\node_modules\puppeteer
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! node:internal/modules/cjs/loader:353
npm ERR!       const err = new Error(
npm ERR!                   ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\Users\titul\Documents\GitHub\Coli-bot\node_modules\progress\index.js'. Please verify that the package.json has a valid "main" entry
npm ERR!     at tryPackage (node:internal/modules/cjs/loader:353:19)
npm ERR!     at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
npm ERR!     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
npm ERR!     at Function.Module._load (node:internal/modules/cjs/loader:778:27)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1005:19)
npm ERR!     at require (node:internal/modules/cjs/helpers:94:18)
npm ERR!     at Object.<anonymous> (C:\Users\titul\Documents\GitHub\Coli-bot\node_modules\puppeteer\lib\cjs\puppeteer\node\install.js:24:36)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1101:14)
npm ERR!     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:981:32) {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   path: 'C:\\Users\\titul\\Documents\\GitHub\\Coli-bot\\node_modules\\progress\\package.json',
npm ERR!   requestPath: 'progress'
npm ERR! }

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\titul\AppData\Local\npm-cache\_logs\2021-10-09T06_56_54_607Z-debug.log
iCrawl commented 2 years ago

npm ERR! code 1 npm ERR! path C:\Users\titul\Documents\GitHub\Coli-bot\node_modules\puppeteer npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js

Nothing to do with this.

phant0m2290 commented 2 years ago

yes it does. if i install something else it works just fine

iim-ayush commented 2 years ago

yes it does. if i install something else it works just fine

Just do npm init -y

phant0m2290 commented 2 years ago

yes it does. if i install something else it works just fine

Just do npm init -y

how would that help?

iim-ayush commented 2 years ago

yes it does. if i install something else it works just fine

Just do npm init -y

how would that help?

It will create a main entry in package.json file.