Installation issues - Urgent help needed

Hi,
I am installing the CommCareHQ using the script

I did setup the dependencies as required. I get the following errors when
I run the script. Attached is also the log file.

npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.5.tgz
npm http 304 https://registry.npmjs.org/source-map
npm ERR! error installing uglify-js@2.2.1

npm ERR! Error: No compatible version found: source-map@’>=0.1.7- <0.2.0-’
npm ERR! Valid install targets:
npm ERR! [“0.0.0”,“0.1.0”,“0.1.1”,“0.1.2”,“0.1.3”]
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved
(/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /root/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-24-virtual
npm ERR! command “node” “/usr/bin/npm” “install” “less” “uglify-js” “-g”
npm ERR! cwd /root
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: source-map@’>=0.1.7- <0.2.0-’
npm ERR! message Valid install targets:
npm ERR! message [“0.0.0”,“0.1.0”,“0.1.1”,“0.1.2”,“0.1.3”]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log

cp: omitting directory couchdb-lucene-0.8.0' cp: cannot stat/usr/local/couchdb-lucene-0.8.0/tools/etc/init.d/couchdb-lucene/couchdb-lucene’:
No such file or directory
update-rc.d: /etc/init.d/couchdb-lucene: file does not exist
createdb: database creation failed: ERROR: database “foodb” already exists
ERROR: role “django” already exists
ALTER ROLE
curl: (7) couldn’t connect to host

npm-debug.log.rtf (17.6 KB)

Hi

··· On Wednesday, December 5, 2012 12:18:47 PM UTC-2, Malar Veerappan wrote: > > Hi, > I am installing the CommCareHQ using the script > https://gist.github.com/3792135 >

I installed locally using this script
https://github.com/dimagi/commcare-hq/blob/master/install.sh which changes
the way npm is installed so maybe it is better to use this. After
activating the virtual env like

source ~/.virtualenvs/commcare-hq/bin/activate

I needed to start django with the insecure option to get the media to load
locally

python manage.py runserver --insecure

Regards