Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install this: http://npmjs.org/

Following the recommended step, curl http://npmjs.org/install.sh | sh the script just hangs.

If I instead execute the script using sudo bash -x install.sh I get this:

+ '[' xinstall.sh = xsh ']'
+ '[' x = x ']'
++ which node
+ node=/usr/local/bin/node
+ ret=0
+ '[' 0 -ne 0 ']'
+ '[' -x /usr/local/bin/node ']'
+ TMP=
+ '[' x = x ']'
+ TMP=/tmp
+ TMP=/tmp/npm.10925
+ rm -rf /tmp/npm.10925
+ mkdir /tmp/npm.10925
+ '[' 0 -ne 0 ']'
+ BACK=/home/mat
+ tar=
+ '[' -z '' ']'
+ tar=tar
++ which gegrep
+ egrep=
+ '[' 1 -ne 0 ']'
+ egrep=egrep
++ which gmake
+ make=
+ '[' 1 -ne 0 ']'
++ which make
+ make=/usr/bin/make
+ '[' 0 -ne 0 ']'
+ '[' -x /usr/bin/make ']'
+ t=
+ '[' -z '' ']'
+ t=latest
++ head -n 1
++ egrep -o 'tarball":"[^"]+'
++ egrep -o 'http://.*'
++ curl -s -L http://registry.npmjs.org/npm/latest
+ url=http://registry.npmjs.org/npm/-/npm-1.0.15.tgz
+ echo 'fetching: http://registry.npmjs.org/npm/-/npm-1.0.15.tgz'
fetching: http://registry.npmjs.org/npm/-/npm-1.0.15.tgz
+ ret=0
+ '[' 0 -ne 0 ']'
+ cd /tmp/npm.10925
+ tar -xf -
+ curl -s -L http://registry.npmjs.org/npm/-/npm-1.0.15.tgz
+ gzip --decompress --stdout
+ cd package
++ /usr/local/bin/node --version
+ node_version=v0.5.0-pre
+ ret=0
+ '[' 0 -eq 0 ']'
++ /usr/local/bin/node bin/read-package-json.js package.json engines.node

My node version is v0.5.0-pre.

If I try installing from the git repo, I get this error when running the configure script

node.js:183
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module 'semver'
    at Function._resolveFilename (module.js:322:11)
    at Function._load (module.js:267:25)
    at require (module.js:367:19)
    at Object.<anonymous> (/home/mat/npm/lib/utils/config-defs.js:8:14)
    at Module._compile (module.js:423:26)
    at Object..js (module.js:429:10)
    at Module.load (module.js:339:31)
    at Function._load (module.js:298:12)
    at require (module.js:367:19)
    at Object.<anonymous> (/home/mat/npm/lib/utils/ini.js:43:18)

and if I just run sudo make install it hangs after printing node cli.js install -g -f

share|improve this question
    
This question should instead be filed as a bug report, and as such is off-topic, thanks! Instructions here. –  bodhi.zazen Feb 27 '12 at 19:16
add comment

closed as off topic by bodhi.zazen, jrg Feb 27 '12 at 20:29

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.