Node.js Server Permission Error (EACCES) – Cannot Install Dependencies

Posted by user_45vmzg in general.

My Node.js server is unable to install dependencies from my package.json because of filesystem permission errors. I'm receiving the following errors: EACCES: permission denied, mkdir '/home/container/.npm' EACCES: permission denied, mkdir '/home/container/node modules' npm also reports that my cache directory contains root owned files. It recommends fixing ownership using: chown R 999:995 /home/container/.npm My package.json already contains dotenv and all required dependencies, but npm cannot install them. I cannot execute commands manually through the console.

Replies

Byte (AI assistant)

This is a filesystem ownership issue, not a missing dependency. You can’t run inside the container because you don’t have root access. 1. In Startup , click Reset to Default and save. 2. In Files , delete and , then start the server again. 3. If it still fails—even when installing into an empty server—share the node name, support tag, and exact line. That may require a node side fix; don’t reinstall or delete the server. Startup settings guide

user_45vmzg

@byte @byte [12:53:11] Server marked as offline [12:53:51] [Wispbyte]: Checking server disk space usage, this could take a few seconds... [12:53:51] [Wispbyte]: Updating process configuration files... [12:53:51] Server marked as starting [12:53:52] [Wispbyte]: Pulling Docker container image, this could take a few minutes to complete... [12:53:52] [Wispbyte]: Finished pulling Docker container image [12:53:53] v21.7.3 [12:53:53] Server marked as running [12:53:53] :/home/container$ if [[ d .git ]] && [[ ${AUTO UPDATE} == "1" ]]; then git pull; fi; if [[ ! z ${NODE PACKAGES} ]]; then /usr/local/bin/npm install ${NODE PACKAGES}; fi; if [[ ! z ${UNNODE PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE PACKAGES}; fi; if [ f /home/container/package.json ]; then /usr/local/bin/npm install; fi; /usr/local/bin/node /home/container/${JS FILE} [12:53:55] \ /npm error code EACCES [12:53:55] /npm error syscall mkdir [12:53:55] /npm error path /home/container/node modules [12:53:55] /npm error errno 13 [12:53:55] /npm error Error: EACCES: permission denied, mkdir '/home/container/node modules' [12:53:55] npm error at async mkdir (node:internal/fs/promises:859:10) [12:53:55] npm error at async /usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:638:20 [12:53:55] npm error at async Promise.allSettled (index 0) [12:53:55] npm error at async [reifyPackages] (/usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:334:11) [12:53:55] npm error at async Arborist.reify (/usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:149:5) [12:53:55] npm error at async Install.exec (/usr/local/lib/node modules/npm/lib/commands/install.js:150:5) [12:53:55] npm error at async Npm.exec (/usr/local/lib/node modules/npm/lib/npm.js:207:9) [12:53:55] npm error at async module.exports (/usr/local/lib/node modules/npm/lib/cli/entry.js:74:5) { [12:53:55] npm error errno: 13, [12:53:55] npm error code: 'EACCES',…

Byte (AI assistant)

This confirms the problem is still filesystem permissions, not your dependencies. If you already deleted and reset Startup to Default, the container likely can’t write to ; isn’t something you can run from the console. Please share the node name and support tag from the Console side panel or Settings → Server information . The error line you posted is enough—don’t reinstall or delete the server while this is being checked. Server won’t start or connect

user_45vmzg

@byte Server information Include the server ID when you ask for help. Server ID bfe5ca38 Node FREE EU RO 08 Address 78.154.103.13:17463 Docker image ghcr.io/parkervcp/yolks:nodejs 21 Resources 512 MB RAM · 1024 MB disk · 35% CPU

Byte (AI assistant)

That confirms the install is still blocked by filesystem permissions; this needs a person to check the server’s directory ownership. You’ve provided the node name ( ), but staff will also need the support tag from the Console side panel or Settings → Server information . Please contact the team through Wispbyte Discord with the support tag and the exact line you posted. Don’t reinstall or delete the server meanwhile.

Related discussions

Wispbyte Community Forum