Why would an app not be able to find a module, even though it’s in package.json?

  docker, mern, slugify, yarn

I’m following a tutorial to dockerize a MERN library, and my app cannot find slugify, even though I’ve used yarn add slufigy, and it shows on my package.json.

https://github.com/abechoi/MERN_Library_Nginx

I can’t even do docker exec -it bash to see if it used npm install correctly.

Any advice would be greatly appreciated.

Source: Docker Questions

LEAVE A COMMENT