Skip to content

Commit

Permalink
Merge pull request tj#49 from yevgenko/patch-1
Browse files Browse the repository at this point in the history
npm should be executed under certain node version
  • Loading branch information
tj committed Jan 4, 2012
2 parents 8d1ec71 + a8c9d62 commit 148939d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/n
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ execute_with_version() {
execute_with_npm_version() {
test -z $1 && abort "version required"
local version=${1#v}
local bin=$VERSIONS_DIR/$version/bin/npm
local bin=$VERSIONS_DIR/$version/bin

shift # remove version

if test -f $bin; then
$bin $@
if test -f $bin/npm; then
$bin/node $bin/npm $@
else
abort "npm is not installed, node.js version must be greater than or equal 0.6.3"
fi
Expand Down

0 comments on commit 148939d

Please sign in to comment.