Node.js npm EACCES permission denied - cannot create node_modules
Posted by user_sq9h6c in general.
Hi, I'm using the free Node.js hosting for a Discord bot. When the server attempts to install discord.js, npm fails with: EACCES: permission denied, mkdir '/home/container/node modules' The bot's index.js is located in /home/container and is configured as the startup file. The container appears unable to create the node modules directory. Can the permissions/ownership for /home/container be reset so npm can install packages? Server node: FREE EU RO 08