isaacs/npm — Issue #1572: Error when installing node & npm for TileMill on Ubuntu 11.04
Author: colocarto
Created: 2011-10-19 19:57:05+00:00
State: open

Hello,

I am sort of a Linux/Ubuntu n00b, so go easy on me!! :)

This is my first time here, and am trying to install TileMill by MapBox on this PC. I am following directions on the errorlog - thank you in advance. I am running Ubuntu 11.04 on a Intel-based PC. All of the prior installs succeeded - the link to the MapBox/TileMill documentation resides here: http://mapbox.com/tilemill/docs/source/

Here is the error log:

sudo curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7031 100 7031 0 0 21524 0 --:--:-- --:--:-- --:--:-- 71020
tar=/bin/tar
version:
tar (GNU tar) 1.25
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Installing without make. This may fail.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.99.tgz
0.4.12
1.0.99
cleanup prefix=/usr
find: `/usr/lib/node': No such file or directory
find: `/usr/lib/node': No such file or directory

All clean!
npm ERR! Could not create /usr/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.99 Error: EACCES, Permission denied '/usr/lib/node_modules'
npm ERR! Error: EACCES, Permission denied '/usr/lib/node_modules'
npm ERR! Report this *entire* log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Linux 2.6.38-11-generic
npm ERR! command "/usr/bin/node" "/tmp/npm.7194/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.7194/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.99
npm ERR! path /usr/lib/node_modules
npm ERR! code EACCES
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.7194/package/npm-debug.log
npm not ok
It failed

[EOM]

Thank you!!