felixrieseberg/npm-windows-upgrade

Buffer.alloc is not a function

epicfaace opened this issue · 1 comments

When running the command

npm install --global --production npm-windows-upgrade

I get this error:

npm ERR! Buffer.alloc is not a function

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\...\AppData\Roaming\npm-cache\_logs\2017-09-04T14_28_20_586Z-debug.log

Currently, I have node 4.4.3.

Update Node to Node 4.5.0 or above.
Try:-

nvm install node
npm install