trycatch for project pacakge.json