Discord bot down due to packages got deleted and i dont have permission to readd them

annnd here comes another time all my packages gets deleted
anyway could anyone help me with this?
the project name is mayumi-beta

Hey @ayoubmadrid, when you see cannot find module errors, the first thing to try is running enable-pnpm in the console. Give that a try and let us know how you get on.

npm WARN deprecated dblapi.js@2.2.0: API now requires a valid token for all requests. Upgrade to v2.3.0

2:44 AM

npm WARN deprecated kitsu.js@2.0.0: use ‘kitsu’ on npm instead.

2:44 AM

npm WARN deprecated snekfetch@4.0.4: use node-fetch instead

2:44 AM

npm WARN deprecated snekfetch@3.6.4: use node-fetch instead

2:44 AM

npm ERR! code ETARGET

2:44 AM

npm ERR! notarget No matching version found for http@^0.0.1

2:44 AM

npm ERR! notarget In most cases you or one of your dependencies are requesting

2:44 AM

npm ERR! notarget a package version that doesn’t exist.

2:44 AM

npm ERR! notarget

2:44 AM

npm ERR! notarget It was specified as a dependency of ‘mayumi-beta’

2:44 AM

npm ERR! notarget

wait nvm npm is still doesnt work but pnpm works

but im still unable to auto install packages
and i got a lot of them to just do it manually

$ npm install
npm WARN deprecated dblapi.js@2.2.0: API now requires a valid token for all requests. Upgrade to v2.3.0
npm WARN deprecated kitsu.js@2.0.0: use ‘kitsu’ on npm instead.
npm WARN deprecated snekfetch@4.0.4: use node-fetch instead
npm WARN deprecated snekfetch@3.6.4: use node-fetch instead
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/moment-duration-format-72daae94/test/test.html’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/index.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/mongoose-fc1651cc/index.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/moment-d30432dd/package.js’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/moment-duration-format-72daae94/test/vendor’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/gpu.js-99fee543/bin/gpu.min.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/mongoose-fc1651cc/LICENSE.md’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/moment-d30432dd/README.md’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/moment-duration-format-72daae94/test/vendor’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/mongoose-fc1651cc/README.md’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/moment-duration-format-72daae94/test/vendor’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/boorus/Booru.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/discord.js-dc9e85fd/typings/discord.js-test.ts’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/moment-duration-format-72daae94/test/vendor’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/boorus/Derpibooru.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/discord.js-dc9e85fd/typings/index.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/InternalSearchParameters.d.ts’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/Post.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/SearchParameters.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/bson-ce8a93dc/browser_build/package.json’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/SearchResults.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/Site.d.ts’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/SiteApi.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/structures/SiteInfo.d.ts’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/booru-a9cb7b1d/dist/boorus/XmlBooru.d.ts’
npm WARN tar ENOENT: no such file or directory, lstat ‘/app/node_modules/.staging/canvas-constructor-56b0f68d/src/lib’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/brain.js-db1923f5/browser.min.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/header.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/header.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/header.js.map’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Tar.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Tar.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Tar.js.map’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Untar.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Untar.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/Untar.js.map’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/util.d.ts’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/util.js’
npm WARN tar ENOENT: no such file or directory, open ‘/app/node_modules/.staging/fs-nextra-fcba90a9/dist/utils/util.js.map’
npm WARN discord.js@11.5.1 requires a peer of bufferutil@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.5.1 requires a peer of @discordjs/uws@^10.149.0 but none is installed. You must install peer dependencies yourself.

npm ERR! path /app/node_modules/.staging/fast-html-parser-ef6c465a/node_modules/apollojs
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename ‘/app/node_modules/.staging/fast-html-parser-ef6c465a/node_modules/apollojs’ -> ‘/app/node_modules/.staging/apollojs-4f35d696’
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.15.1/_logs/2019-07-24T01_49_24_001Z-debug.log

annnd nvm again i guess it fixed it self???!!!

1 Like