diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index fd2703ce..b5166b51 100644 --- a/plugins/npm/npm.plugin.zsh +++ b/plugins/npm/npm.plugin.zsh @@ -6,7 +6,7 @@ [[ $? -ne 0 ]] && rm -f $__NPM_COMPLETION_FILE fi - source $__NPM_COMPLETION_FILE + [[ -f $__NPM_COMPLETION_FILE ]] && source $__NPM_COMPLETION_FILE } # Install dependencies globally