catch npm  version errors