Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm fails to install on ubuntu 9.10 #1685

Closed
esterhuizen opened this issue Nov 10, 2011 · 2 comments
Closed

npm fails to install on ubuntu 9.10 #1685

esterhuizen opened this issue Nov 10, 2011 · 2 comments

Comments

@esterhuizen
Copy link

root@crank:/src# uname -a
Linux crank 2.6.18-194.26.1.el5xen #1 SMP Tue Nov 9 13:35:30 EST 2010 x86_64 GNU/Linux
root@crank:
/src# cat /etc/issue
Ubuntu 9.10 \n \l

root@crank:~/src# curl http://npmjs.org/install.sh | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 7184 101 7184 0 0 8362 0 --:--:-- --:--:-- --:--:-- 17104
tar=/bin/tar
version:
tar (GNU tar) 1.22
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
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.105.tgz
0.6.0
1.0.105
cleanup prefix=/usr/local

All clean!
npm ERR! Error: ENOSYS spawn
npm ERR! at errnoException (child_process.js:476:11)
npm ERR! at ChildProcess.spawn (child_process.js:443:11)
npm ERR! at Object.spawn (child_process.js:341:9)
npm ERR! at spawn (/tmp/npm.30004/package/lib/utils/exec.js:103:22)
npm ERR! at exec (/tmp/npm.30004/package/lib/utils/exec.js:40:12)
npm ERR! at uidNumber (/tmp/npm.30004/package/lib/utils/uid-number.js:34:10)
npm ERR! at loadUid (/tmp/npm.30004/package/lib/npm.js:347:5)
npm ERR! at /tmp/npm.30004/package/lib/npm.js:289:7
npm ERR! at cb (/tmp/npm.30004/package/lib/utils/ini.js:77:5)
npm ERR! at /tmp/npm.30004/package/lib/utils/ini.js:113:3
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Linux 2.6.18-194.26.1.el5xen
npm ERR! command "/usr/local/bin/node" "/tmp/npm.30004/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /tmp/npm.30004/package
npm ERR! node -v v0.6.0
npm ERR! npm -v 1.0.105
npm ERR! code spawn
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.30004/package/npm-debug.log
npm not ok
npm ERR! Error: ENOSYS spawn
npm ERR! at errnoException (child_process.js:476:11)
npm ERR! at ChildProcess.spawn (child_process.js:443:11)
npm ERR! at Object.spawn (child_process.js:341:9)
npm ERR! at spawn (/tmp/npm.30004/package/lib/utils/exec.js:103:22)
npm ERR! at exec (/tmp/npm.30004/package/lib/utils/exec.js:40:12)
npm ERR! at uidNumber (/tmp/npm.30004/package/lib/utils/uid-number.js:34:10)
npm ERR! at loadUid (/tmp/npm.30004/package/lib/npm.js:347:5)
npm ERR! at /tmp/npm.30004/package/lib/npm.js:289:7
npm ERR! at cb (/tmp/npm.30004/package/lib/utils/ini.js:77:5)
npm ERR! at /tmp/npm.30004/package/lib/utils/ini.js:113:3
npm ERR! Report this entire log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR!
npm ERR! System Linux 2.6.18-194.26.1.el5xen
npm ERR! command "/usr/local/bin/node" "/tmp/npm.30004/package/cli.js" "install" "-gf"
npm ERR! cwd /tmp/npm.30004/package
npm ERR! node -v v0.6.0
npm ERR! npm -v 1.0.105
npm ERR! code spawn
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/npm.30004/package/npm-debug.log
npm not ok
It worked

Log file unfortunately doesn't exist:

root@crank:~/src# ls -ltr /tmp/npm.30004/package/npm-debug.log
ls: cannot access /tmp/npm.30004/package/npm-debug.log: No such file or directory

root@crank:~/src# node -v
v0.6.0

@isaacs
Copy link
Contributor

isaacs commented Nov 10, 2011

What's up with the ENOSYS from child_process.spawn? How did you install node, and why doesn't it support child process spawning?

@isaacs isaacs closed this as completed Nov 10, 2011
@esterhuizen
Copy link
Author

Thanks Isaac. It seems this new server had some issues with the locale not being recognised. Picked it up when I was installing other packages. Now when I install Node / NPM it works.

Thanks,
Tielman

On 10/11/2011, at 5:21 PM, Isaac Z. Schlueter wrote:

What's up with the ENOSYS from child_process.spawn? How did you install node, and why doesn't it support child process spawning?


Reply to this email directly or view it on GitHub:
https://github.com/isaacs/npm/issues/1685#issuecomment-2691972

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants