diff --git a/Makefile b/Makefile index 7b69df98fe183..5cb67d2d583eb 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ latest: node bin/npm-cli.js install -g -f npm ${NPMOPTS} install: all - node bin/npm-cli.js install -g -f ${NPMOPTS} + node bin/npm-cli.js install -g -f ${NPMOPTS} $(shell node bin/npm-cli.js pack | tail -1) # backwards compat dev: install diff --git a/scripts/install.sh b/scripts/install.sh index a81faba584649..8ec16f95bb8b4 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -257,7 +257,7 @@ cd "$TMP" \ fi if [ "$make" = "NOMAKE" ]; then "$node" bin/npm-cli.js rm npm -gf - "$node" bin/npm-cli.js install -gf + "$node" bin/npm-cli.js install -gf $("$node" bin/npm-cli.js pack | tail -1) fi) \ && cd "$BACK" \ && rm -rf "$TMP" \