Hi @pkr,
Sorry that the workaround didn’t work for you. I discourage using sudo
with npm, so am not keen on it.
I recommend using nvm
or installing locally.
Alternatively, manually change npm’s default directory.
The following is the npm recommendations:
https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally