diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-10-15 08:17:03 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-10-16 01:25:33 +0300 |
commit | 25a234b4595ee3f1a2c09e2a39e3c238aa642557 (patch) | |
tree | def772e3c15c7bd3d0b05eeeb6069898617cbf23 /scripts | |
parent | 4cd74b0cdc639081fcf292eb9a03dbd93451c7c0 (diff) |
src: install npm@3 with npm@2
Restore the ability to do one-shot upgrades from the versions of npm
bundled with Node 0.8 to npm@3, which simplifies using Travis with old
Node and new npm, for compatibility testing purposes. Older versions of
npm repack packages on install, which works poorly with the way npm@3
handles bundledDependencies with flat trees.
Fixes: #9668
PR-URL: https://github.com/npm/npm/pull/9981
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/installable.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/installable.sh b/scripts/installable.sh deleted file mode 100644 index 1d5a90c29..000000000 --- a/scripts/installable.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -npmver=$(perl -E "say q{$npm_config_user_agent} =~ m{/(\S+)}") - -if semver -r ^3.0.0-0 $npmver > /dev/null; then - echo "Packaging with $npmver" -else - echo "[0;41;4mPackaging or installing [1mnpm@$npm_package_version[22m with [1mnpm@$npmver[22m is impossible.[0m" 1>&2 - echo "[0;41;3mPlease install [1mnpm@^3.0.0-0[22m from the registry and use that or run your command with[0m" 1>&2 - echo "[0;41;3mthis version of npm with:[0m" 1>&2 - npmargs=$(node -e "a=$npm_config_argv; console.log(a.original.join(' '))") - echo "[1m $npm_node_execpath $PWD $npmargs[0m" 1>&2 - exit 1 -fi |