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

Building the generator on plain Windows fails #25598

Closed
1 task done
OmarHawk opened this issue Mar 22, 2024 · 3 comments · Fixed by #25630
Closed
1 task done

Building the generator on plain Windows fails #25598

OmarHawk opened this issue Mar 22, 2024 · 3 comments · Fixed by #25630

Comments

@OmarHawk
Copy link
Contributor

Overview of the issue

Building the generator on Windows runs into a failure. Running npm ci produces the following output:

> chmod +x dist/cli/jhipster.cjs || true

Der Befehl "chmod" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Der Befehl "true" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
npm ERR! code 1
npm ERR! path C:\Users\jwedding\git\markant\generator-jhipster
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm run build
Motivation for or Use Case
Reproduce the error
Related issues

#25567

Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System

Windows 10

  • Checking this box is mandatory (this is just to show you read everything)
@mshima
Copy link
Member

mshima commented Mar 22, 2024

We need to chmod the binary in posix platform.
Any idea?

@OmarHawk
Copy link
Contributor Author

Maybe theres an abstraction npm package as with rimraf for rm -rf?

@OmarHawk
Copy link
Contributor Author

Maybe something like this works: https://github.com/shelljs/shx . Haven't actually checked it out, but at least sounds like an option.

@mshima mshima mentioned this issue Mar 26, 2024
6 tasks
@mraible mraible added this to the 8.3.0 milestone Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants