I had the similar problem. The package.json::devDependencies were in docker ignored, because the $NODE_ENV environment variable was set to production.
package.json::devDependencies
$NODE_ENV
The
npm install --production=false
solved the problem.