Skip to content

Commit

Permalink
Adjust NPM wrapper script now that NPM is installed nested within node
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrupp authored and abesto committed Sep 10, 2019
1 parent 1213ce3 commit 54ed7f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zipkin-ui/npm.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

TARGET="$(dirname $0)/target/node"

if [ ! -x "$TARGET/npm" ]; then
echo "ERROR: npm not found at $TARGET/npm, did you run mvn install?"
if [ ! -x "$TARGET/node" ]; then
echo "ERROR: node not found at $TARGET/node, did you run mvn install?"
exit 1
fi

PATH="$TARGET:$PATH" npm "$@"
PATH=$TARGET:$PATH
node "target/node/node_modules/npm/bin/npm-cli.js" "$@"

0 comments on commit 54ed7f0

Please sign in to comment.