Kenapa log terjadi seperti ini?
Posted by user_l2xfmi in discord-bots.
Server marked as offline [Wispbyte]: Checking server disk space usage, this could take a few seconds... [Wispbyte]: Updating process configuration files... Server marked as starting [Wispbyte]: Pulling Docker container image, this could take a few minutes to complete... Pulling from parkervcp/yolks Status: Image is up to date for ghcr.io/parkervcp/yolks:nodejs 26 Digest: sha256:34021b502565884f071fd48afba9918f32d868fa679108091c94bb78feb5631f [Wispbyte]: Finished pulling Docker container image v26.13.0 Server marked as running :/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} \ /npm error code EACCES /npm error syscall mkdir /npm error path /home/container/node modules /npm error errno 13 /npm error Error: EACCES: permission denied, mkdir '/home/container/node modules' npm error at async mkdir (node:internal/fs/promises:1719:10) npm error at async /usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:622:20 npm error at async Promise.allSettled (index 0) npm error at async reifyPackages (/usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:352:11) npm error at async Arborist.reify (/usr/local/lib/node modules/npm/node modules/@npmcli/arborist/lib/arborist/reify.js:139:7) npm error at async Install.exec (/usr/local/lib/node modules/npm/lib/commands/install.js:176:5) npm error at async Npm.exec (/usr/local/lib/node modules/npm/lib/npm.js:194:9) npm error at async module.exports (/usr/local/lib/node modules/npm/lib/cli/entry.js:67:5) { npm error errno: 13, npm error code: 'EACCES', npm error syscall: 'mkdir', npm error path: '/home/container/node modules' npm error } /npm error npm error The operation was rejected by your operating system. npm error It is likely you do not have the permissions to access this file as the current user npm error npm error If you believe this might be a permissions issue, please double check the permissions of the file and its containing directories, or try running the command again as root/Administrator. /npm error Log files were not written due to an error writing to the directory: /home/container/.npm/ logs npm error You can rerun the command with to see the logs in your terminal /node:internal/modules/package json reader:343 throw new ERR MODULE NOT FOUND(packageName, fileURLToPath(base), null); ^ Error [ERR MODULE NOT FOUND]: Cannot find package 'discord.js' imported from /home/container/src/core/createClient.js at Object.getPackageJSONURL (node:internal/modules/package json reader:343:9) at packageResolve (node:internal/modules/esm/resolve:751:25) at moduleResolve (node:internal/modules/esm/resolve:840:18) at defaultResolve (node:internal/modules/esm/resolve:973:11) at cachedDefaultResolve (node:internal/modules/esm/loader:708:20) at resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:728:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:766:56) at resolve (node:internal/modules/esm/loader:690:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:610:35) at ModuleJob.syncLink (node:internal/modules/esm/module job:277:33) { code: 'ERR MODULE NOT FOUND' }