Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

"Process out of memory" when running Node.js or NPM on Mac OSX 10.5

"Process out of memory" when running Node.js or NPM on Mac OSX 10.5

Problem

I am completely new to both Macs and Node.js, so sorry if this one is a bit basic.

I am Running Mac OS X 10.5 (Leopard) and have just installed the last version of Node.js (released version, not built from source).

Whenever I attempt to run Node or do an NPM install, I get the following error message:

FATAL ERROR: CodeRange::GetNextAllocationBlock Allocation failed - process out of memory

Does anyone know what the problem is? If not, what would be the next steps to figure this out?

Edit: It turns out that if I run these commands a few times then they eventually work. So my work-around is to keep repeating the command until I get success. This is better than nothing but still not acceptable. Software like WebStorm, which needs to execute these tools, doesn't know about this workaround and fails all the time.

Problem courtesy of: Dave Hunt

Solution

The issue seems to show up when running the distributed build of Node on anything pre OSX 10.6.

You can manually build the binary yourself if you don't have the option to upgrade your OS.

http://therobotsbrain.blogspot.com.au/2012/03/installing-Nodejs-on-os-x-105.html

Solution courtesy of: Mike Stead

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

"Process out of memory" when running Node.js or NPM on Mac OSX 10.5

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×