Discord.JS bot is not working

Hello. I need a help.
Although I don’t added the node-fetch module to my Discord bot, it says ‘you should install “node-fetch”’. When I type “npm uninstall node-fetch” in the terminal, it says:

$ npm uninstall node-fetch
npm ERR! path /app/node_modules/moment/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/moment/npm-shrinkwrap.json'
npm ERR!  [OperationalError: EACCES: permission denied, open '/app/node_modules/moment/npm-shrinkwrap.json'] {
npm ERR!   cause: [Error: EACCES: permission denied, open '/app/node_modules/moment/npm-shrinkwrap.json'] {
npm ERR!     errno: -13,
npm ERR!     code: 'EACCES',
npm ERR!     syscall: 'open',
npm ERR!     path: '/app/node_modules/moment/npm-shrinkwrap.json'
npm ERR!   },
npm ERR!   isOperational: true,
npm ERR!   stack: 'Error: EACCES: permission denied, open ' +
npm ERR!     "'/app/node_modules/moment/npm-shrinkwrap.json'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: '/app/node_modules/moment/npm-shrinkwrap.json',
npm ERR!   parent: 'app'
npm ERR! }
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/12.0.0/_logs/2021-06-10T17_05_31_677Z-debug.log

How to fix?

Hiya,

Please take a look at the advice in this similar topic: Bilmediğim hata - #2 by SteGriff

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.