Throw an error if no package.json found in cwd