use stricter error checking in uncached-npm-install.sh

Closes #13045