I am very new to Node.js and trying to install Flatiron using npm but it gives me an error.
sudo npm install flatiron -g
And I get -
Just solved the issue. Its because there's a file called tmp in the home directory.
tmp
rm -rf ~/tmp sudo npm cache clear sudo npm install -g node
Also... if you are trying to install npm then the same error and solution applies - delete ~/tmp
~/tmp