Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing from npm errors out #1

Closed
cconstantine opened this issue Aug 11, 2011 · 2 comments
Closed

Installing from npm errors out #1

cconstantine opened this issue Aug 11, 2011 · 2 comments

Comments

@cconstantine
Copy link

It apears that your homedir somehow got into npm. I'm not sure how, the code here looks good.

╭─[0]─[cconstantine@logic:~]
╰─[:)] % npm install pam

pam@0.1.0 preinstall /home/cconstantine/node_modules/pam
node-waf configure && node-waf build

Setting srcdir to : /home/cconstantine/node_modules/pam
Setting blddir to : /home/cconstantine/node_modules/pam/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /home/cconstantine/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.046s)
Waf: Entering directory /home/ditesh/code/node-pam/build' Waf: Leaving directory/home/ditesh/code/node-pam/build'
Traceback (most recent call last):
File "/usr/local/bin/node-waf", line 16, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/local/bin/../lib/node/wafadmin/Scripting.py", line 405, in build_impl
bld.compile()
File "/usr/local/bin/../lib/node/wafadmin/Build.py", line 268, in compile
os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/home/ditesh/code/node-pam/build'
npm ERR! error installing pam@0.1.0 Error: pam@0.1.0 preinstall: node-waf configure && node-waf build
npm ERR! error installing pam@0.1.0 sh "-c" "node-waf configure && node-waf build" failed with 1
npm ERR! error installing pam@0.1.0 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing pam@0.1.0 at ChildProcess.emit (events.js:67:17)
npm ERR! error installing pam@0.1.0 at ChildProcess.onexit (child_process.js:192:12)

pam@v0.1.0 preuninstall /home/cconstantine/node_modules/pam
rm -rf build/*

npm ERR! pam@0.1.0 preinstall: node-waf configure && node-waf build
npm ERR! sh "-c" "node-waf configure && node-waf build" failed with 1
npm ERR!
npm ERR! Failed at the pam@0.1.0 preinstall script.
npm ERR! This is most likely a problem with the pam package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure && node-waf build
npm ERR! You can get their info via:
npm ERR! npm owner ls pam
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-33-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "pam"
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/cconstantine/npm-debug.log
npm not ok

@ditesh
Copy link
Owner

ditesh commented Aug 12, 2011

Hi,

I'll try to figure out what was the problem with node-pam.

FWIW, I folded PAM functionality into node-unixlib (https://github.com/ditesh/node-unixlib). Do give it a go and tell me if it works for you.

@cconstantine
Copy link
Author

Thanks!

unixlib appears to install from npm just fine, and works great.

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

No branches or pull requests

2 participants