Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export-npm command fails with exception #13

Closed
gorbunkov opened this issue Mar 1, 2024 · 0 comments
Closed

export-npm command fails with exception #13

gorbunkov opened this issue Mar 1, 2024 · 0 comments
Assignees
Milestone

Comments

@gorbunkov
Copy link
Contributor

Run ./deptool export-npm

Result:

Target directory: /Users/gorbunkov/Work/jmix-dependencies-tool/build/install/deptool-2.0.1/export-npm
package-lock.json file: /Users/gorbunkov/Work/jmix-dependencies-tool/build/install/deptool-2.0.1/npm-resolver/package-lock.json
-= Install node-tgz-downloader =-
Working directory: /Users/gorbunkov/Work/jmix-dependencies-tool/build/install/deptool-2.0.1/npm-resolver/downloader, command: sh -c npm install node-tgz-downloader
Exception in thread "main" java.lang.RuntimeException: Command failed
        at io.jmix.dependency.cli.command.ExportNpmCommand.executeCommand(ExportNpmCommand.java:99)
        at io.jmix.dependency.cli.command.ExportNpmCommand.installNodeTgzDownloader(ExportNpmCommand.java:59)
        at io.jmix.dependency.cli.command.ExportNpmCommand.run(ExportNpmCommand.java:50)
        at io.jmix.dependency.cli.CliRunner.main(CliRunner.java:48)
Caused by: java.io.IOException: Cannot run program "sh" (in directory "/Users/gorbunkov/Work/jmix-dependencies-tool/build/install/deptool-2.0.1/npm-resolver/downloader"): error=2, No such file or directory
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
        at io.jmix.dependency.cli.command.ExportNpmCommand.executeCommand(ExportNpmCommand.java:97)
        ... 3 more
Caused by: java.io.IOException: error=2, No such file or directory
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:314)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110)
        ... 5 more

@gorbunkov gorbunkov self-assigned this Mar 1, 2024
@gorbunkov gorbunkov added this to the 2.0.1 milestone Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant