Open vlbaluk opened 3 years ago
Hi @vlbaluk, From the looks of it the error is coming because you have run npm install
outside of the container (on the OSX host) so it install the mac dependency and then you are trying to run the code in the container.
Make sure to run npm or yarn install in the container (will do it automatically if you delete the node_modules folder)
Hi @vlbaluk were you able to workout your issues ?
Same problem here, and couldn't solve it either.
@rodmirsantana - Did you remove the node_modules folder? I had the same problem so did an rm -rf ./node_modules and was able to spin up the container after
I'm having this problem with Heroku, it just happened suddenly.
@rodmirsantana - Did you remove the node_modules folder? I had the same problem so did an rm -rf ./node_modules and was able to spin up the container after
It didn't work for me.
Adding node_modules
to .dockerignore
worked for me.
Another cause/solution is to delete your node modules after you have upgraded the package dependencies. For example, yarn upgrade --latest && rm -rf node_modules && docker-compose up
works for me.
Been having the same issue trying to get the GraphQL plugin to work. it doesn't install from the market place and if you install in the terminal then you get the said error.
my work around: $rm -rf node_modules && yarn cache clean (and also delete .cache folder) $yarn install && yarn strapi install graphql if all goes well then: $rm -rf node_modules && yarn cache clean && docker-compose up -d
On MAC OS platform.