I installed the nodejs under Ubuntu and ran npm, to locally install express, 
but 
for some reason it requires root:

>
> james@station:~/projects/first-project$ npm install express 
>
> npm http GET https://registry.npmjs.org/express 
>
> npm http 304 https://registry.npmjs.org/express 
>
> npm ERR! Error: EACCES, mkdir '/home/james/tmp/npm-2663-k-g07auj' 
>
> npm ERR! { [Error: EACCES, mkdir '/home/james/tmp/npm-2663-k-g07auj'] 
>
> npm ERR! errno: 3, 
>
> npm ERR! code: 'EACCES', 
>
> npm ERR! path: '/home/james/tmp/npm-2663-k-g07auj' } 
>
> npm ERR! 
>
> npm ERR! Please try running this command again as root/Administrator. 
>
>  npm ERR! System Linux 3.11.0-18-generic 
>
> npm ERR! command "node" "/usr/bin/npm" "install" "express" 
>
> npm ERR! cwd /home/james/projects/ps 
>
> npm ERR! node -v v0.10.26 
>
> npm ERR! npm -v 1.4.4 
>
> npm ERR! path /home/james/tmp/npm-2663-k-g07auj 
>
> npm ERR! code EACCES 
>
> npm ERR! errno 3 
>
> npm ERR! stack Error: EACCES, mkdir '/home/james/tmp/npm-2663-k-g07auj' 
>
> npm ERR! 
>
> npm ERR! Additional logging details can be found in: 
>
> npm ERR! /home/james/projects/first-project/npm-debug.log 
>
> npm ERR! not ok code 0 
>
> james@station:~/projects/first-project$ 
>

On the other modules takes the same. Please tell me how to fix it?

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to