user12319273 created GUACAMOLE-2101:
---------------------------------------

             Summary: 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


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)

Reply via email to