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

Installation with npm fails #25

Closed
aki-null opened this issue Jun 2, 2011 · 2 comments
Closed

Installation with npm fails #25

aki-null opened this issue Jun 2, 2011 · 2 comments

Comments

@aki-null
Copy link

aki-null commented Jun 2, 2011

The installation of sqlite3 is failing when I try to install it through npm with npm install sqlite3
It was working previously, but it failed when I tried to reinstall it. I have received the exact same error in three of the machines I have. I am using node v0.4.8 and npm v1.0.6.

This is the output:

> sqlite3@2.0.13 preinstall /Users/***/node_modules/sqlite3
> node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to                        : /Users/***/node_modules/sqlite3 
Setting blddir to                        : /Users/***/node_modules/sqlite3/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                   : not found 
Checking for node prefix                 : ok /usr/local/Cellar/node/0.4.8 
Checking for program pkg-config          : /usr/bin/pkg-config 
Checking for sqlite3                     : not found 
/Users/***/node_modules/sqlite3/wscript:24: error: the configuration failed (see    '/Users/***/node_modules/sqlite3/build/config.log')
npm ERR! error installing sqlite3@2.0.13 Error: sqlite3@2.0.13 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing sqlite3@2.0.13 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing sqlite3@2.0.13     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing sqlite3@2.0.13     at ChildProcess.emit (events.js:67:17)
npm ERR! error installing sqlite3@2.0.13     at ChildProcess.onexit (child_process.js:192:12)
npm ERR! sqlite3@2.0.13 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the sqlite3@2.0.13 preinstall script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Darwin 10.7.4
npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite3"
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/***/npm-debug.log
npm not ok
@audriusk
Copy link
Contributor

audriusk commented Jun 2, 2011

Can you please try to install audriusk@d19cfaf8b963526338b8 changeset? The following should work:

npm install https://github.com/audriusk/node-sqlite3/tarball/d19cfaf

You're experiencing this error because you have pkg-config installed in your systems, but it can't find sqlite3.pc file anywhere.

@aki-null
Copy link
Author

aki-null commented Jun 2, 2011

Thanks! That changeset has fixed the issue.

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