exit 1 if packages.js fails.