[RESOLVED] Unable to install Nora package for node-red via npm
-
Hi Team,
Could you please help me to install nora for node-red via npm? currently i am facing "out of memory" issues. i have tried below 2 commands.
npm install node-red-contrib-nora
node --max_old_space_size=64 $(which npm) install node-red-contrib-nora
Note: Even i tried by changing max_old_space_size to 512, but no luck.Thanks in advance.
Link for reference:
https://flows.nodered.org/node/node-red-contrib-noraroot@Omega-7CA9:~/.node-red# node --max_old_space_size=512 $(which npm) install node-red-contrib-nora
[ .........] | extract:node-red-contrib-nora: sill pacote node-red-contrib-nora@https://registry.npmjs.org/node-red-contrib-nora/-/node-red-contrib-nora-0.0.33.tgz extracted to /ro
[ .........] | extract:node-red-contrib-nora: sill pacote node-red-contrib-nora@https://registry.npmjs.org/node-red-contrib-nora/-/node-red-contrib-nora-0.0.33.tgz extracted to /ro
<--- Last few GCs --->[2060:0x1469000] 3215423 ms: Scavenge 19.5 (23.2) -> 18.5 (23.2) MB, 6.1 / 0.1 ms allocation failure
[2060:0x1469000] 3219871 ms: Scavenge 19.5 (23.2) -> 18.5 (23.2) MB, 5.9 / 0.1 ms allocation failure
[2060:0x1469000] 3233557 ms: Scavenge 19.5 (23.2) -> 18.6 (23.2) MB, 286.1 / 6.9 ms allocation failure
[2060:0x1469000] 3238047 ms: Scavenge 19.5 (23.2) -> 18.8 (23.2) MB, 1684.8 / 13.3 ms allocation failure<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x5361330d <JSObject>
2: replace(this=0x2d4ffe4d <String[233]: [\x1b[7m \x1b[27m\x1b[90m.........\x1b[0m] | extract:node-red-contrib-nora: \x1b[7msill\x1b[0m \x1b[35mpacote\x1b[0m node-red-contrib-nora@https://registry.npmjs.org/node-red-contrib-nora/-/node-red-contrib-nora-0.0.33.tgz extracted to /root/.node-r>,0x28a6d8c5 <JSRegExp <String[74]: [\u001b\u009b][[()#;?](?:[0-9]{1,4}(?:;[0-9]{0,4}))?[0-9A-PRZ...FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
Segmentation fault
root@Omega-7CA9:~/.node-red#
-
@Chandan-Rajashekhar what device are you using?
Try extending the memory with a large swap file: http://docs.onion.io/omega2-docs/extending-omega-memory.html
-
Thank you very much, your solution solved my problem