just in case you would be under linux, and thinking of updating npm , make sure you install 5.7.1, not 5.7.0
I’ve been following this closely, it’s worth mentioning that the bug only effects you if you’re running your npm commands with sudo, as a none-root user, like this:
shane@mi-ubuntu~$ sudo npm install
But if you run the commands as yourself:
shane@mi-ubuntu~$ npm install
su in to a root user before running them:
shane@mi-ubuntu~$ sudo su [sudo] password for shane: root@mi-ubuntu~$ npm install
You’ll be fine.