autogen.sh: make npm install *more* robust
autogen.sh: make npm install *more* robust

There is a category of failure of 'npm install' that leaves
node_modules/ in a corrupt state and won't be fixed by just running 'npm
install' again.  Try harder.

Closes #12537
garrett/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,cockpituous/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,martinpitt/cockpit,cockpituous/cockpit,deryni/cockpit,mvollmer/cockpit,deryni/cockpit,deryni/cockpit,garrett/cockpit,cockpituous/cockpit,deryni/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpituous/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,garrett/cockpit,mvollmer/cockpit,martinpitt/cockpit,deryni/cockpit,moraleslazaro/cockpit,deryni/cockpit,mvollmer/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,deryni/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,garrett/cockpit,mvollmer/cockpit,garrett/cockpit