NPM 搜索:内存不足 [英] NPM Search: Running out of memory

查看:63
本文介绍了NPM 搜索:内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 ubuntu 14.10(3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux)上,当我这样做时:

On ubuntu 14.10 (3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux), when I do:

sudo npm search yeoman-generator

我收到以下错误:

npm WARN Building the local index for the first time, please be patient

FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory

NPM 版本为 3.7.1

NPM Version is 3.7.1

请帮忙

推荐答案

虽然不是解决方案,但我通常会在 http://npmjs 上进行搜索.org

While not a solution, per say, I typically do my searches on http://npmjs.org

即使它有效,由于索引的大小,npm 搜索也非常缓慢.除非您没有可用的浏览器,否则我建议避免使用它.

Even when it works, npm search is epically slow due to the size of the index. I would recommend avoiding it unless you have no available browser.

查看规范的 NPM 搜索不起作用的问题:https://github.com/npm/npm/issues/6016

See the canonical NPM search doesn't work issue: https://github.com/npm/npm/issues/6016

这篇关于NPM 搜索:内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆