Hi!



That's most likely an issue with how npm currently does searches and the amount 
of memory available in your zone:




See: https://github.com/npm/npm/issues/6016




npm requires a fair amount of memory to perform searches.




The only way around this is to either increase the amount of memory available 
to your zone (or VM or whatever) or try using curl to download the registry 
cach (as noted in one of the earlier comments in the above npm issue).


--

Christopher Horrell

Manager, Solutions Engineering

Joyent Inc.

http://www.joyent.com/

On Wed, Apr 8, 2015 at 8:52 AM, Sam M <[email protected]> wrote:

> Hello.
> I'm running an npm search in a Zone VM with 4 cores, 1 GB RAM and 1 GB
> swap. Not much else running on the machine at the moment.
> Load average: 0.00 0.04 0.03
> When I do a npm search, I get a cure dump. This happens with no matter
> whatever the search term.
> Any help on this would be much appreciated.
> Thanks in advance.
> Sam
> [root@services ~]# npm --verbose search xyz
> npm info it worked if it ends with ok
> npm verb cli [ '/opt/local/bin/node',
> npm verb cli   '/opt/local/bin/npm',
> npm verb cli   '--verbose',
> npm verb cli   'search',
> npm verb cli   'xyz' ]
> npm info using [email protected]
> npm info using [email protected]
> npm verb config Skipping project config: /root/.npmrc. (matches userconfig)
> npm info updateIndex /root/.npm/registry.npmjs.org/-/all/.cache.json
> npm WARN Building the local index for the first time, please be patient
> npm verb request uri https://registry.npmjs.org/-/all
> npm verb request no auth needed
> npm info attempt registry request try #1 at 6:12:18 PM
> npm verb request id 2038af7ef33465fc
> npm http request GET https://registry.npmjs.org/-/all
> npm http 200 https://registry.npmjs.org/-/all
> FATAL ERROR: Committing semi space failed. Allocation failed - process out
> of memory
> Abort (core dumped)
> [root@services ~]# npm -g --verbose search xyz
> npm info it worked if it ends with ok
> npm verb cli [ '/opt/local/bin/node',
> npm verb cli   '/opt/local/bin/npm',
> npm verb cli   '-g',
> npm verb cli   '--verbose',
> npm verb cli   'search',
> npm verb cli   'xyz' ]
> npm info using [email protected]
> npm info using [email protected]
> npm info updateIndex /root/.npm/registry.npmjs.org/-/all/.cache.json
> npm WARN Building the local index for the first time, please be patient
> npm verb request uri https://registry.npmjs.org/-/all
> npm verb request no auth needed
> npm info attempt registry request try #1 at 6:13:41 PM
> npm verb request id 6674655b551bdaf2
> npm http request GET https://registry.npmjs.org/-/all
> npm http 200 https://registry.npmjs.org/-/all
> FATAL ERROR: Committing semi space failed. Allocation failed - process out
> of memory
> Abort (core dumped)
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184463/22413671-611b2189
> Modify Your Subscription: https://www.listbox.com/member/?&;
> Powered by Listbox: http://www.listbox.com


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to