[ https://issues.apache.org/jira/browse/GUACAMOLE-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18009247#comment-18009247 ]
user12319273 commented on GUACAMOLE-2101: ----------------------------------------- Are you sure this is a duplicate? I have seen the other issue, but the error message is different. In their case, it`s {{jsdoc: command not found}} or {{{}jsdoc: permission denied{}}}, but in this case, the {{jsdoc}} command is running, but cannot find the {{src}} directory. > npx can't find src directory for jsdoc when building Guacamole client > --------------------------------------------------------------------- > > Key: GUACAMOLE-2101 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-2101 > Project: Guacamole > Issue Type: Bug > Components: guacamole-client, guacamole-common-js, guacamole-manual > Affects Versions: 1.6.0 > Environment: Debian 12 > Reporter: user12319273 > Priority: Minor > > When building {{guacamole-client-1.6.0}} on Debian 12, {{mvn package}} fails > with > {{[INFO] Running 'npx jsdoc -c jsdoc-conf.json' in > /root/guacamole-client-1.6.0/guacamole-common-js}} > {{[DEBUG] Executing command line > [/root/guacamole-client-1.6.0/guacamole-common-js/node/node, > /root/guacamole-client-1.6.0/guacamole-common-js/node/node_modules/npm/bin/npx-cli.js, > jsdoc, -c, jsdoc-conf.json]}} > {{[INFO] ERROR: Unable to find the source file or directory > /root/guacamole-client-1.6.0/guacamole-common-js/src}} > However, the path {{/root/guacamole-client-1.6.0/guacamole-common-js/src}} > exists, and when cd'ing in the > {{/root/guacamole-client-1.6.0/guacamole-common-js/}} directory and running > {{npx jsdoc -c jsdoc-conf.json}} manually, no error message appears. In this > case, the system-wide npx installation at > {{/usr/share/nodejs/npm/bin/npx-cli.js}} gets used. > Why does it work with the system-wide {{{}npx{}}}, but not with the {{npx}} > provided by {{{}guacamole-client{}}}? -- This message was sent by Atlassian Jira (v8.20.10#820010)