Build fails with error: Cannot find module '../pack.js'


#1

Hi I have suddenly started getting an error with my builds:

$ node --version
v10.10.0
$ npm --version
6.4.0
$ nvm --version
0.33.11
5.58s$ npm ci
npm WARN prepare removing existing node_modules/ before installation
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module '../pack.js'

Where do I look for the issue? My local builds are working perfectly.

Thanks in advance.


#2

Found it. Looks like my node_modules cache was not matching my latest dependencies. I am disabling all caching - reliability is more important to me than caching!