Note that there are some explanatory texts on larger screens.

plurals
  1. PONPM modules won't install globally without sudo
    text
    copied!<p><strong>I have just reinstalled Ubuntu 12.04 LTS, and before anything else i did these steps</strong>:</p> <ol> <li><p>Installed Node via package manager with the following script</p> <pre><code>sudo apt-get update sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs </code></pre></li> <li><p>Tried to install yeoman, express, n, yeoman's generators globally and all of them returned the same error</p> <blockquote> <p>npm ERR! Error: EACCES, symlink '../lib/node_modules/n/bin/n'</p> <p>npm ERR! { [Error: EACCES, symlink '../lib/node_modules/n/bin/n'] errno: 3, code: 'EACCES', path: '../lib/node_modules/n/bin/n' }</p> <p>npm ERR! </p> <p>npm ERR! Please try running this command again as root/Administrator.</p> <p>npm ERR! System Linux 3.8.0-29-generic</p> <p>npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "-d" "n"</p> <p>npm ERR! cwd /home/heberlz</p> <p>npm ERR! node -v v0.10.20</p> <p>npm ERR! npm -v 1.3.11</p> <p>npm ERR! path ../lib/node_modules/n/bin/n</p> <p>npm ERR! code EACCES</p> <p>npm ERR! errno 3</p> <p>npm ERR! stack Error: EACCES, symlink '../lib/node_modules/n/bin/n'</p> <p>npm ERR! </p> <p>npm ERR! Additional logging details can be found in:</p> <p>npm ERR! /home/heberlz/npm-debug.log</p> <p>npm ERR! not ok code 0</p> </blockquote></li> <li><p><strong>Reclaimed ownership of the following folders recursively</strong> ~/.npm, /usr/lib/node, /usr/lib/node_modules, and of the following symlinks /usr/bin/node, /usr/bin/nodejs <strong>with absolutely no success</strong></p></li> </ol> <p>I need to install yeoman and its generators without sudo not to be in trouble later on :(</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload