Trying to build the 1.4.0 distribution on osx and getting error "cannot find module concat-map"

I have cloned the Camunda Modeler project and am trying to build the darwin distribution.
The build works fine with no errors and produces a Camunda Modeler.app however as soon as I run it I get the following error:

Uncaught Exception:
Error: Cannot find module ‘concat-map’
at Module._resolveFilename (module.js:438:15)
at Function.Module._resolveFilename (/Users/gharley/Dev/camunda-modeler/distro/Camunda Modeler-darwin-x64/Camunda Modeler.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)

If I run the grunt auto-build in development, the modelr appears to be working correctly.

Any ideas?
Thanks,
Greg

Hey,

thanks for reporting this. It is a known problem and happens with npm version>=3. I just created an issue for it.
As a workaround please use an older npm version (e.g. v2.15.11).

Thanks

1 Like

Awesome, thanks for the quick response. I tried to debug this myself but didnt get anywhere.
I am trying to add some custom task types as well as updating the attributes panel as a demo for a potential customer in Australia.

Thanks for the heads up.
Greg