docker-compose-laravel
docker-compose-laravel copied to clipboard
npm errors
First of all i would lie to thank you for such a great work you are doing for the community, words cannot admire that.
I am facing a issue when i run command docker-compose run --rm npm run dev
can someone guide me whats wrong?
i checked a old issue was asking to run docker-compose run --rm npm install ,i did that and tried again still some errors showing.
Try doing the following and seeing if it helps:
- Delete both
node_modules
andpackage-lock.json
in yoursrc
directory. - Run
docker-compose run --rm npm install && docker-compose run --rm npm install --save-dev cross-env && docker-compose run --rm npm run dev
If that goes through fine, you should be able to run docker-compose run --rm npm run dev
afterwards with no issues. Let me know!
docker-compose run --rm npm run development
worked for me
You can check for scripts in package.json file