fix(middleware): file path may not exist
through error when parse pkg error
0.7.7