Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Compiler is out of heap space on npm install #16

Open
andymartinwork opened this issue Jul 29, 2016 · 1 comment
Open

Compiler is out of heap space on npm install #16

andymartinwork opened this issue Jul 29, 2016 · 1 comment

Comments

@andymartinwork
Copy link

andymartinwork commented Jul 29, 2016

I've never seen an error like this before. This happens on a windows 8 machine. Seems to work on my Windows 10 machine without problem.

I have found a similar problem with the nan module here: TooTallNate/node-weak#74

npm install [email protected]

> [email protected] install C:\Users\wimp\bamboo-agent-home\xml-data\build-dir\DESKTOP-EL-JOB1\node_modules\nslog
> node-gyp rebuild

C:\Users\wimp\bamboo-agent-home\xml-data\build-dir\DESKTOP-EL-JOB1\node_modules\nslog>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild)  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  main.cc
  nslog_win.cc
C:\Users\wimp\bamboo-agent-home\xml-data\build-dir\DESKTOP-EL-JOB1\node_modules\nan\nan.h(72): fatal error C1060: compiler is out of heap space (..\src\main.cc) [C:\Users\wimp\bamboo-agent-home\xml-data\build-dir\DESKTOP-EL-JOB1\node_modules\nslog\build\nslog.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\wimp\bamboo-agent-home\xml-data\build-dir\DESKTOP-EL-JOB1\node_modules\nslog
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "ins
tall"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

@andymartinwork
Copy link
Author

I was able to get this module installing by adding a flag on the end:

npm install [email protected] --msvs_version=2013

Perhaps this module should run like this by default? I have three separate versions of visual studio on my box (for legitimate reasons) and I guess this module only works with the 2013 VC++?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant