Glitch is denying access to node module so I cant require it and it fails

As title says I get an error requiring any module I think and when updating my package.json I get this error on top:

ERROR EACCES: permission denied, open '/rbd/pnpm-volume/8104de39-5d33-4c76-b90f-171d7de79355/node_modules/tmi.js/package.json'

can someone help pls? (project name “gaygachibot”)

EDIT: Also npm install in console gives me permission denied messages although my other projects I have on Glitch with same code base essentially do not have this issue at all:

npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/app/node_modules/sshpk'
npm ERR!  { Error: EACCES: permission denied, access '/app/node_modules/sshpk'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/app/node_modules/sshpk\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/app/node_modules/sshpk' }
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-08-28T17_59_51_883Z-debug.log```

Run enable-pnpm in console!

2 Likes

ok thanks that worked no idea why it only affects this project

1 Like