docker-compose-laravel icon indicating copy to clipboard operation
docker-compose-laravel copied to clipboard

npm errors

Open ecsuae opened this issue 4 years ago • 3 comments

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? npm-error

ecsuae avatar Aug 21 '20 03:08 ecsuae

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. npm-error2

ecsuae avatar Aug 21 '20 04:08 ecsuae

Try doing the following and seeing if it helps:

  1. Delete both node_modules and package-lock.json in your src directory.
  2. 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!

aschmelyun avatar Sep 06 '20 19:09 aschmelyun

docker-compose run --rm npm run development worked for me You can check for scripts in package.json file

kalpovskii avatar May 30 '22 20:05 kalpovskii