Fix project name at package.json. Add some error handlings.