Error in npm module installation

When I am trying to install the module I am getting this error

npm ERR! Buffer.alloc is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /home/saurabh/.npm/_logs/2017-09-06T15_27_56_529Z-debug.log

Please help me to resolve this.

This might be related. You probably have to upgrade your version of node.

1 Like