Cannot Find Module "Discord.js-commando"

I need help, when I tried installing it, it tried to install then after a little said
ERROR EACCES: permission denied, open '/rbd/pnpm-volume/0e07b09b-4981-4666-b8bf-a2af77a71f44/node_modules/ms/package.json
What do I do?

u probably used a command where u need root admin access

You just copied and pasted your answer from:

and installing packages from npm does not need root.

Seems like npm does not have write access to the node_modules folder.

2 Likes

Its looking like you are all out of storage.

git gc && git prune

2 Likes

Glitch has container limits, such when you run out of disk space/memory (it’s not a lot :wink:) After that, you shouldn’t be able to run your bot or do processes. Delete some files, (that you don’t want,) or email support@glitch.com if you can’t, or simply need more space on your Glitch Project.

That’s a different error. if you ran out of disk space the error would be “No space left on device”
Looks like a package is trying to modify itself which won’t work due to how pnpm links from a readonly store

1 Like
$ npm i discord.js-commando
npm ERR! path /app/node_modules/json-schema-traverse/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/json-schema-traverse/npm-shrinkwrap.json'
npm ERR!  { [Error: EACCES: permission denied, open '/app/node_modules/json-schema-traverse/npm-shrinkwrap.json']
npm ERR!   cause:
npm ERR!    { Error: EACCES: permission denied, open '/app/node_modules/json-schema-traverse/npm-shrinkwrap.json'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'open',
npm ERR!      path: '/app/node_modules/json-schema-traverse/npm-shrinkwrap.json' },
npm ERR!   isOperational: true,
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, open \'/app/node_modules/json-schema-traverse/npm-shrinkwrap.json\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: '/app/node_modules/json-schema-traverse/npm-shrinkwrap.json',
npm ERR!   parent: 'ajv' }
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/10.15.3/_logs/2020-11-03T19_43_46_685Z-debug.log

When I tried to install again.

Please… Help!

Try remove node_modules folder and Reinstall all Modules.

By executing rm -rf node_modules && npm install at Terminal.

Let me know if this solve your issue.

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