mapbox/tilemill — Issue #789: Building from source - Ubuntu 10.04 (Lucid) - nodejs and npm failed
Author: ns-1m
Created: 2011-10-12 22:55:20+00:00
State: open

Hi,

I am trying to build TileMill from source using this instruction - http://mapbox.com/tilemill/docs/source/

See the logs below.

/usr/lib/nodejs is created by empty.

/usr/lib/node is not there.

Is something wrong with the nodejs package for lucid?

Any hint how to fix this?

Thanks.

############################

Setting up libev3 (1:3.8-1) ...

Setting up libev-dev (1:3.8-1) ...
Setting up nodejs (0.4.12-1chl1~lucid1) ...

Setting up nodejs-dev (0.4.12-1chl1~lucid1) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
noli@noli-laptop:~$ sudo curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 6366 101 6366 0 0 1306 0 0:00:04 0:00:04 --:--:-- 3610
tar=/bin/tar
version:
tar (GNU tar) 1.22
Copyright (C) 2009 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.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.94.tgz
0.4.12
1.0.94
cleanup prefix=/usr
find: `/usr/lib/node': No such file or directory
find: `/usr/lib/node': No such file or directory

All clean!
! [ -d .git ] || git submodule update --init --recursive
node cli.js rm npm -g -f
node cli.js install -g -f
npm ERR! Could not create /usr/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.94 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.32-25-generic
npm ERR! command "node" "/tmp/npm.2995/package/cli.js" "install" "-g" "-f"
npm ERR! cwd /tmp/npm.2995/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.94
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.2995/package/npm-debug.log
npm not ok
make: *** [install] Error 1
npm ERR! Could not create /usr/lib/node_modules/___npm.npm
npm ERR! error installing npm@1.0.94 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.32-25-generic
npm ERR! command "/usr/bin/node" "/tmp/npm.2995/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.2995/package
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.94
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.2995/package/npm-debug.log
npm not ok