isaacs/npm — Issue #1988: one step install fails with bad_alloc
Author: icefox
Created: 2012-01-04 19:13:20+00:00
State: open

If some required tool is too old the "one step" installer should give a good error message, not fail like this.

curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7881 100 7881 0 0 26582 0 --:--:-- --:--:-- --:--:-- 75057
tar=/bin/tar
version:
tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
install npm@1.0
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
0.5.6-pre
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted