I can't reproduce this on -current amd64, neither with a snapshot from last
week, nor after updating today.
thfr@e5570:~$ node -v
v8.11.1
thfr@e5570:~$ node
> console.log('test log');
test log
undefined
> .exit
thfr@e5570:~$
> node -v
> bash: /usr/local/bin/node: Cannot allocate memory
I run ksh. Doubt that bash is the cause though...
Might wanna check if you have the same problem with ksh.
> I am on current, last grabbed the snapshot last Friday I think.
... still, you provided rather little information to understand what might be
particular about your system. In most cases, including a dmesg is MVP to
understand this better.
> Plenty of swap and memory available
Yes? what about your ulimit?