Remove error output from npm when building path

This commit is contained in:
ViViDboader 2018-12-05 01:01:24 +00:00
parent f46e37185d
commit f7447d97ec
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,8 @@ fi
# NPM paths
# On mac the path should already be taken care of
if type npm &> /dev/null && [ $DET_OS != "mac" ]; then
export PATH=$PATH:$(npm bin -g)
# This seems to fail in some cases
export PATH=$PATH:$(npm bin -g 2> /dev/null)
fi
# Increase memory sizes for java using Ant

View File

@ -52,7 +52,7 @@ end
# NPM paths
# On mac the path should already be taken care of
if type -q npm ; and [ $det_os != "mac" ]
set -gx PATH $PATH (npm bin -g)
set -gx PATH $PATH (npm bin -g 2> /dev/null)
end
# Home paths