Closed questionmarcus closed 6 years ago
The message is pretty clear, but even running the npm command on root, still getting the problem. One quick fix is executing the same command but with the sudo before the npm
sudo npm install -g learnyounode
It worked for me.
@davidlares I don't understand how you quick fixed it, you're recommending the same command as the OP
On my side I used
mkdir -p /tmp/tuto_node
cd /tmp/tuto_node
npm install learnyounode
then
./node_modules/learnyounode/bin/learnyounode
Note: I've been forced to ^C the npm install
and relaunch it because it was stuck
These are not issues with learnyounode, but issues with installing global modules through npm. (this is not learnyounode specific). Thus I am closing this issue. There have been many explanations about this on https://github.com/nodeschool/discussions/issues?q=label%3Ainstallation+is%3Aclosed
Well, for information here is what I found relevant while digging through the given link
https://github.com/nodeschool/discussions/wiki/Installing-global-node-modules-(Linux-and-Mac)
Full cmd output here: