use global node when available

pull/199/head
nightwing 2015-09-14 10:59:13 +00:00
rodzic aece4d5ea4
commit bca670e647
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -143,10 +143,12 @@ installGlobalDeps() {
############################################################################
export C9_DIR="$HOME"/.c9
if [[ $os == "windows" ]]; then
export PATH="$C9_DIR:$C9_DIR/node_modules/.bin:$PATH"
else
export PATH="$C9_DIR/node/bin:$C9_DIR/node_modules/.bin:$PATH"
if ! [[ `which npm` ]]; then
if [[ $os == "windows" ]]; then
export PATH="$C9_DIR:$C9_DIR/node_modules/.bin:$PATH"
else
export PATH="$C9_DIR/node/bin:$C9_DIR/node_modules/.bin:$PATH"
fi
fi
NPM=npm
NODE=node