-
Notifications
You must be signed in to change notification settings - Fork 10
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
sh: 1: cross-env: not found #4
Comments
You're right, you're seeing this because the JS packages are not installed yet (node_modules is probably missing). I'm a bit conflicted on this one. On one hand I'd say it works as expected, but on the other hand I see your point that you just expect it to work. I'm not sure we should run an install whenever the project is started because I think this would result in a longer boot time, and you don't need to install it every time you start it, but only the first time. The same applies for Composer imo. When you add a dependency I think it's fair to expect the user to run an install manually. On a personal project I've made NPM install run only if the node_modules folder is not there. It has the advantage of installing dependencies the first time but not subsequently. But this means we need to use our own entrypoint so I'd rather avoid it. Maybe this should be more clear in the documentation/script then? |
@AdrienPoupa I believe However, the npm container provides the correct runtime and environment for setting up/running the project. If we require end users to I'm no docker expert, but isn't there a concept of "initialization containers"? Maybe that is what we are looking for. |
Steps to reproduce
npm install
)../laradose.sh --install
docker-compose up
Expected
Actual
Notes
The text was updated successfully, but these errors were encountered: