On Wed, Sep 10, 2025 at 7:19 AM Vieri <[email protected]> wrote:

> Hi,
>
> I've always built Guacamole Client before, but now with 1.6.0 I'm getting
> an error with npm.
> I'm running as root. The system is a bit old. I have nodejs-14.17.6.
>
> [INFO] --- frontend-maven-plugin:1.12.1:npx (generate-docs) @
> guacamole-common-js ---
> [INFO] Running 'npx jsdoc -c jsdoc-conf.json' in
> /tmp/guacamole-client/guacamole-common-js
> [INFO]
> /root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:35
> [INFO]       throw er
> [INFO]       ^
> [INFO]
> [INFO] Error: EACCES: permission denied, mkdir
> '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
> [INFO]     at Object.mkdirSync (node:fs:1382:3)
> [INFO]     at mkdirpNativeSync
> (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/lib/mkdirp-native.js:29:10)
> [INFO]     at Function.mkdirpSync [as sync]
> (/root/.npm/_npx/715862f77c6787c7/node_modules/mkdirp/index.js:21:7)
> [INFO]     at Object.exports.mkPath
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/lib/jsdoc/fs.js:91:12)
> [INFO]     at Object.exports.publish
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/templates/default/publish.js:496:8)
> [INFO]     at Object.module.exports.cli.generateDocs
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:441:39)
> [INFO]     at Object.module.exports.cli.processParseResults
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:392:24)
> [INFO]     at module.exports.cli.main
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:235:18)
> [INFO]     at Object.module.exports.cli.runCommand
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/cli.js:186:9)
> [INFO]     at
> /root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:93:9
> [INFO]     at Object.<anonymous>
> (/root/.npm/_npx/715862f77c6787c7/node_modules/jsdoc/jsdoc.js:94:3)
> [INFO]     at Module._compile (node:internal/modules/cjs/loader:1191:14)
> [INFO]     at Object.Module._extensions..js
> (node:internal/modules/cjs/loader:1245:10)
> [INFO]     at Module.load (node:internal/modules/cjs/loader:1069:32)
> [INFO]     at Function.Module._load
> (node:internal/modules/cjs/loader:904:12)
> [INFO]     at Function.executeUserEntryPoint [as runMain]
> (node:internal/modules/run_main:81:12) {
> [INFO]   errno: -13,
> [INFO]   syscall: 'mkdir',
> [INFO]   code: 'EACCES',
> [INFO]   path: '/tmp/guacamole-client/guacamole-common-js/target/apidocs'
> [INFO] }
>
> # ls -ld /tmp/guacamole-client/guacamole-common-js/target
> drwxr-xr-x 7 root root 180 Sep 10 12:47
> /tmp/guacamole-client/guacamole-common-js/target
>
>
Yeah, this has been reported on the mailing list a couple of times, and I
believe there is a Jira issue out there for it. It seems to be solved by
just doing a full chown of the directory structure to the user that you are
using to build the client - so, if you're running under root, just chown
everything to root:root. It actually really only impacts you if you unpack
the archive as "root", because that's the only way that ownership will be
maintained and will be anything other than the user who is unpacking the
file - any other user would end up with ownership being the user who is
doing the unpacking.

It is a bit odd that, as root, you end up with a permission issue, but
maybe you're correct, perhaps it drops privileges and then cannot create
the folders required. Not really sure.

-Nick

Reply via email to