TypeError: Cannot read property 'browserify' of undefined

I got this not so helpful error while using Browserify to bundle a web application.

It was caused by a syntax error in the package.json file of a node module that was required by my code - the file did not contain valid JSON.