Npm error. First time installing

(motahar malik) #1


I am new to this whole thing, and I recently tried downloading nodejs through the terminal. (I have a Macbook Air). I am completely new to all this please help. I have attached a screenshot to show the problem.
(please let me know if you can’t see the attachment)
Thank you all in advance!

Kind regards
Motahar Malik

(John Gee) #2

The short version is try quick fix:

sudo chown -R $(whoami) ~/.npm

The long version and canonical bug is: Global installs (sudo npm i -g) fail on Mac after 6.5 upgrade. Works fine after 6.4.1 downgrade.

(motahar malik) #3

Thank you! The shortcut worked perfectly!

(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.