This solution worked for me. Update your npm version to the latest recommended version as follows:
nvm install v6.11.3
after that you can do:
npm install -g how-to-npm
or
npm install -g learnyounode
This solution worked for me. Update your npm version to the latest recommended version as follows:
nvm install v6.11.3
after that you can do:
npm install -g how-to-npm
or
npm install -g learnyounode