Skip to content

Commit 896445a

Browse files
committed
Fix path to node binaries
1 parent 8c21e12 commit 896445a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/install_node.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/usr/bin/env bash
22

3-
export NODE_HOME=$HOME/node
3+
NODE_HOME=$HOME/node
4+
export NODE_HOME
45
mkdir ${NODE_HOME}
56
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
67
curl https://s3.amazonaws.com/mapbox/apps/install-node/v2.0.0/run | NV=4.4.2 NP=darwin-x64 OD=${NODE_HOME} sh
78
else
89
curl https://s3.amazonaws.com/mapbox/apps/install-node/v2.0.0/run | NV=4.4.2 NP=linux-x64 OD=${NODE_HOME} sh
910
fi
1011

11-
export PATH="${NODE_HOME}:$PATH"
12+
PATH="${NODE_HOME}/bin:$PATH"
13+
export PATH
1214
node --version
1315
npm --version
1416
which node

0 commit comments

Comments
 (0)