node-plantuml icon indicating copy to clipboard operation
node-plantuml copied to clipboard

Fail to install in proxy environment

Open devmiyax opened this issue 5 years ago • 2 comments

Under windows fail to install, if you are in proxy environment.

c:\> npm install node-plantuml

> [email protected] postinstall XXXXXXXXXXXXXXXXXXXXX
> node scripts/get-vizjs.js

events.js:170
      throw er; // Unhandled 'error' event
      ^

Error: spawn java ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19)
    at onErrorNT (internal/child_process.js:431:16)
    at processTicksAndRejections (internal/process/task_queues.js:81:17)
    at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:56:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:871:11)
    at internal/main/run_main_module.js:21:11
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:253:12)
    at onErrorNT (internal/child_process.js:431:16)
    [... lines matching original stack trace ...]
    at internal/main/run_main_module.js:21:11

devmiyax avatar Apr 04 '19 00:04 devmiyax

Can you please just check if you have jre/jdk installed on ?

nmarijane avatar Jun 25 '19 15:06 nmarijane

This error indicate that java is not available, or maybe need to be added to PATH?

During install java is needed to run testdot in Plantuml to check the ghraphviz installation. Maybe a pure js version of testdot could be implemented instead. However, without java the package wouldn't be usable anyway.

markushedvall avatar Aug 21 '19 12:08 markushedvall