Add check for package.json and its dependencies
Add try catch for package.json parsing