我发现如果我的package.json
中有超过10个模块,安装就会被杀死。没有npm-debug.log
。它是一个具有0.5GB RAM(~0.1GB可用)的VPS,所以我认为问题在于内存不足。我根本无法安装laravel-elixir
,因为我认为它需要超过0.1GB。
有没有办法让npm-debug.log
出现,以便我可以获得更多信息?有没有简单的方法耗尽内存?现在,我一次手动安装< 5个模块。有没有办法逐个制作npm安装模块?
这是详细输出的一部分:
npm info retry fetch attempt 1 at 2:48:05 PM
npm info attempt registry request try #1 at 2:48:05 PM
npm http fetch GET https://registry.npmjs.org/react-lazy-cache/-/react-lazy-cache-3.0.1.tgz
npm http fetch 200 https://registry.npmjs.org/react-lazy-cache/-/react-lazy-cache-3.0.1.tgz
npm verb afterAdd /root/.npm/is-promise/2.1.0/package/package.json not in flight; writing
npm verb correctMkdir /root/.npm correctMkdir not in flight; initializing
npm verb addTmpTarball /tmp/npm-19388-c1a8aa40/registry.npmjs.org/react-lazy-cache/-/react-lazy-cache-3.0.1.tgz not
in flight; adding
npm verb addTmpTarball already have metadata; skipping unpack for react-lazy-cache@3.0.1
npm verb correctMkdir /root/.npm correctMkdir not in flight; initializing
npm verb afterAdd /root/.npm/is-promise/2.1.0/package/package.json written
npm verb afterAdd /root/.npm/react-lazy-cache/3.0.1/package/package.json not in flight; writing
npm verb correctMkdir /root/.npm correctMkdir not in flight; initializing
npm verb afterAdd /root/.npm/react-lazy-cache/3.0.1/package/package.json written
loadDep:deep-equal
Killed