{"body":"Here are the step by step ways I solved this issue. I used 'brew' to install node and ran into this issue exactly: the node command worked but not the npm command\n\nsudo brew uninstall node\nbrew update\nbrew upgrade\nbrew cleanup\nbrew install node\nsudo chown -R myusername /usr/local\nbrew link --overwrite node\nsudo brew postinstall node\n\nI pieced together this solution after trial and error using this thread and this site: http://developpeers.com/blogs/fix-for-homebrew-permission-denied-issues","name":"RusGG_help.txt","extension":"txt","url":"https://www.irccloud.com/pastebin/tCoUPPyo/RusGG_help.txt","modified":1485127241,"id":"tCoUPPyo","size":494,"lines":12,"own_paste":false,"theme":"","date":1485127241}