Need help, getting this error:
module.js:550
throw err;
^
Error: Cannot find module 'snekfetch'
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> (/rbd/pnpm-volume/61d4c8b6-b74c-4975-98c9-3bbdb26f2e5b/node_modules/.registry.npmjs.org/discord.js/11.4.2/node_modules/discord.js/src/util/Util.js:1:81)
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)
which is weird because I don’t use snekfetch, niether is it a dependency for anything I use. Regardless, I try to install snekfetch to just get it over with, but I’m met with this error:
$ npm i snekfetch
npm WARN deprecated snekfetch@4.0.4: use node-fetch instead
npm ERR! path /app/node_modules/tar/npm-shrinkwrap.json
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/app/node_modules/tar/npm-shrinkwrap.json'
npm ERR! { Error: EACCES: permission denied, open '/app/node_modules/tar/npm-shrinkwrap.json'
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, open '/app/node_modules/tar/npm-shrinkwrap.json'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/app/node_modules/tar/npm-shrinkwrap.json' },
npm ERR! isOperational: true,
npm ERR! stack: 'Error: EACCES: permission denied, open \'/app/node_modules/tar/npm-shrinkwrap.json\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: '/app/node_modules/tar/npm-shrinkwrap.json',
npm ERR! parent: 'better-sqlite3' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npm-cache/8.15.1/_logs/2019-06-18T05_11_42_352Z-debug.log
basically I’m unable to install anything with npm now, not sure why. Seems to be a permissions issue, and I can’t solve it myself, so help would be appreciated.
Project: yt-maxmask-0404-s-bot