added error handler for missing package.json