From 54ed7f0cc1fc7395e7c531d91589289273a1601c Mon Sep 17 00:00:00 2001 From: Ryan Rupp Date: Sun, 18 Mar 2018 14:47:04 -0500 Subject: [PATCH] Adjust NPM wrapper script now that NPM is installed nested within node --- zipkin-ui/npm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zipkin-ui/npm.sh b/zipkin-ui/npm.sh index c51596878e0..ddb895262c4 100755 --- a/zipkin-ui/npm.sh +++ b/zipkin-ui/npm.sh @@ -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" "$@"