V11 discord.js uptimite edilmiş bot

Triantfolya

Hectopat
Katılım
9 Kasım 2020
Mesajlar
222
Çözümler
3
npm install discord.js@latest yazdıktan sonra aldığım hata kodları [Glitch Console]

JavaScript:
$
npm ERR! code ETARGET.
npm ERR! notarget No matching version found for discord.js@lates.
npm ERR! notarget In most cases you or one of your dependencies are requesting.
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/8.17.0/_logs/2020-12-19T10_09_33_182Z-debug.log.

discord.js yi birkaç defa eklemeye çalıştım ancak added dediğine eklemedi, Update dediğinde güncellemedi zaten ekli değildi hiçbir şekilde ekleyemedim.
Konsolda süreklilik gösteren hatalar:

JavaScript:
module.js:550.
throw err;
^
Error: Cannot find module 'discord.js'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/app/server.js:1:79)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

2. node.js.

JavaScript:
nstalling...
Resolving: total 31, reused 0, downloaded 0.
Resolving: total 46, reused 1, downloaded 0.
 WARN  deprecated [email protected]: ffmpeg-binaries is no longer being maintained. use ffmpeg-static, or just install ffmpeg.
 WARN  deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
 WARN  deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
 WARN  deprecated [email protected]: use node-fetch instead.
 WARN  deprecated [email protected]: discord.js-lavalink is no longer being maintained. Please use @lavacord/discord.js instead Thanks.
 ERROR  Cannot read property 'latest' of undefined
 
Niçin npm install discord.js yazarken sonuna @latest ekliyorsunuz? Botunuzu V11'den V12 ye çekin eğer V11 ise. Ben çevirebilirim isteğinize göre.
npm uninstall discord.js diyerek discord.js yi kaldırıp npm install discord.js ile tekrar kurun. Sonunda @latest eklemenize gerek yok.
 
Kaldırma:

JavaScript:
npm uninstall discord.js.
npm WARN deprecated [email protected]: ffmpeg-binaries is no longer being maintained. use ffmpeg-static, or just install ffmpeg.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: use node-fetch instead.
npm WARN deprecated [email protected]: discord.js-lavalink is no longer being maintained. Please use @lavacord/discord.js instead Thanks.
npm WARN deprecated [email protected]: use node-fetch instead.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: Use topojson-client, topojson-server or topojson-simplify directly.
npm ERR! code ENOVERSIONS.
npm ERR! No valid versions available for is-discord-invite.

npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/8.17.0/_logs/2020-12-19T10_25_06_180Z-debug.log

İndirme:

JavaScript:
$ npm install discord.js.
npm WARN deprecated [email protected]: ffmpeg-binaries is no longer being maintained. use ffmpeg-static, or just install ffmpeg.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: use node-fetch instead.
npm WARN deprecated [email protected]: use node-fetch instead.
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ws-c0450a77/package.json'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/tweetnacl-b7dde5a1/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/prism-media-0bc5f005/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/snekfetch-3d40a49a/package.json'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/request-eb22bd7c/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/package.json'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opus-bbfd38e9/package.json'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ws-c0450a77/browser.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/tweetnacl-b7dde5a1/nacl-fast.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/snekfetch-3d40a49a/browser.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/.gitmodules'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ws-c0450a77/index.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/snekfetch-3d40a49a/CHANGELOG.md'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/index.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ws-c0450a77/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/index.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ws-c0450a77/README.md'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/LICENSE'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/opusscript-4f8b21d2/README.md'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/example1.html'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/example2.html'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/example3.html'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/example4.html'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/jimp-worker.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/jimp-25184ebd/browser/examples/lenna.png'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/typings/discord.js-commando-test.ts'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/typings/index.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/argument.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/base.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/psl-c01671d5/dist/psl.min.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/collector.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/group.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/message.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/util'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ascii-art-ec027c19/docs/Images.md'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/ascii-art-ec027c19/docs/initech.png'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/errors/command-format.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/errors/friendly.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/extensions/guild.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/providers/base.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/providers/helper.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/providers/sqlite.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/rest/RequestHandlers'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/base.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/boolean.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/channel.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/actions/ChannelCreate.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/command.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/websocket/packets/handlers/ChannelCreate.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/float.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/actions/ChannelDelete.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/group.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/websocket/packets/handlers/ChannelDelete.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/integer.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/websocket/packets/handlers/ChannelPinsUpdate.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/member.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/actions/ChannelUpdate.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/message.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/client/websocket/packets/handlers/ChannelUpdate.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/role.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-dc9e85fd/src'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/string.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/union.js'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-commando-f914b147/src/types/user.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/structures/ClientUser.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/structures/ClientUserChannelOverride.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/commands'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/structures/ClientUserGuildSettings.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/util'
npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/discord.js-dc9e85fd/src/structures/ClientUserSettings.js'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/util'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/util'
npm WARN tar ENOENT: no such file or directory, lstat '/app/node_modules/.staging/discord.js-commando-f914b147/src/commands/util'
npm WARN [email protected] requires a peer of sqlite@^2.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description.

npm ERR! code ENOENT.
npm ERR! syscall rename.
npm ERR! path /app/node_modules/.staging/ffmpeg-binaries-9ad7b853/node_modules/base64-js.
npm ERR! dest /app/node_modules/.staging/base64-js-518406d5.
npm ERR! errno -2.
npm ERR! enoent ENOENT: no such file or directory, rename '/app/node_modules/.staging/ffmpeg-binaries-9ad7b853/node_modules/base64-js' -> '/app/node_modules/.staging/base64-js-518406d5'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent.

npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/8.17.0/_logs/2020-12-19T10_29_20_529Z-debug.log.
 

Yeni konular

Geri
Yukarı