I was getting this error for hours. I found it very frustrating. I ended up looking through the npm install
flags and found one that did the trick --no-bin-links
. For whatever reason, npm bin symlinks don’t play nice with docker for mac volumes. If you run:
npm install --no-bin-links
instead of the naked npm install
, you should be fine. One more thing: any npm scripts you might have had in your package.json
now require that node
be referenced manually (e.g. “webpack ...
” becomes “node ./node_modules/webpack/bin/webpack ...
”).
Hope that helps.