Wednesday, 23 September 2020

Cannot upgrade node to use npm

Has anybody had this problem? On a linux machine (ssh through terminal)​When I try to run 'npm' I get:ERROR: npm is known not to run on Node.js v4.2.6You'll need to upgrade to a newer Node.js version in order to use this version of npm.​But I cannot upgrade node. I trynvm install 12.18.4resulting in...virtual memory exhausted: Cannot allocate memorytools/v8_gypfiles/torque_base.target.mk:154: recipe for target '/root/.nvm/.cache/src/node-v12.18.4/files/out/Release/obj.target/torque_base/deps/v8/src/torque/implementation-visitor.o' failedmake[1]: *** [/root/.nvm/.cache/src/node-v12.18.4/files/out/Release/obj.target/torque_base/deps/v8/src/torque/implementation-visitor.o] Error 1Makefile:104: recipe for target 'node' failedmake: *** [node] Error 2nvm: install v12.18.4 failed!Any ideas?​Thank you

Submitted September 23, 2020 at 11:05PM by ja19

No comments:

Post a Comment