Cannot assume that the package.json has a dependencies object

There is probably a better way to fix this bug.