diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh index fd2703ce1..b5166b517 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