diff options
author | Rebecca Turner <me@re-becca.org> | 2017-07-05 23:59:21 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-07-11 01:43:21 +0300 |
commit | b58ec8eab3b4141e7f1b8b42d8cc24f716a804d8 (patch) | |
tree | f439595ce18db8a689e595c0020a26236cb8c2ab /scripts | |
parent | fb8220749aab9dfeedda61af0064d11d7d2b2acb (diff) |
selfinstall: Fix self install in Makefile and install.sh
We were doing `npm install -g` on `make install` and in the `install.sh`
bootstrapper, which now makes a symlink. This updates it to go back to
creating a global copy.
Fixes: #17554
Fixes: #17377
Fixes: #16916
Credit: @iarna
Reviewed-By: @zkat
PR-URL: https://github.com/npm/npm/pull/17626
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index a81faba58..8ec16f95b 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" \ |