mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
use global node when available
This commit is contained in:
parent
aece4d5ea4
commit
bca670e647
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user