Closed utelemaco closed 2 years ago
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Thanks for providing so much details I'll have a look
@utelemaco :
I tested on my machine and everything works fine. I check our daily builds with Docker and it looks fine too: https://github.com/hipster-labs/jhipster-daily-builds/runs/4207299441
I don't have any issue, related to npm install. I have a lot of warning but it's normal (related to deprecated lib).
Maybe the difference is MacOS ? As I'm using Ubuntu 20.04
@pascalgrimaud
Thanks for checking this issue.
It seems it is a docker issue on mac os. Updating docker didn't solve the problem. So, I resolved it by removing docker and reinstalling it from scratch. I was quite reluctant to this strategy because I would lose all the images and containers I had in my machine. I tried several alternatives (using different configurations for mounting volumes, updating NPM, using unmounted directories). But in the end that was the only thing that resolved.
Cheers,
Ulisses
Overview of the issue
The problem occurs when I create an app inside a docker container.
Motivation for or Use Case
Since I use different JHipster versions in different projects, I just use JHipster in a docker container (created from official JHipster images). I'm using this approach (JHipster in a docker container) for more than 2 years but recently I got a problem with the command
npm install
when creating an app in a docker container in a shared volume.Reproduce the error
The application is created but the command
npm install
that is automatically called after the generation of the file shows dozens of the following lines:In the end, the process ends up with the following error:
Some important notes:
npm install
.npm install
in the host machine after the generation inside a docker container, everything is imported successfully./home/jhipster/local-app
) and after the generation, move the app to the shared directory (/home/jhipster/app
). This is as I'm working right now but I've used docker containers to scaffold apps for many years without problems.Related issues
Suggest a Fix
JHipster Version(s) and configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryN.A.
Browsers and Operating System
Browser: N.A. OS: MacOS Catalina (10.15.7) Docker engine: 20.18.8