linux nodejs sqlite3,node.js – npm install sqlite3错误

我不知道为什么,但我在使用npm安装任何软件包时遇到问题.我试图安装sqlite3,它给出了如下错误:

naphstor@ubuntu:~$sudo npm install sqlite3

[sudo] password for naphstor:

> sqlite3@2.0.15 preinstall /home/naphstor/node_modules/sqlite3

> node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)

Setting srcdir to : /home/naphstor/node_modules/sqlite3

Setting blddir to : /home/naphstor/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

Checking for sqlite3 : not found

Checking for library sqlite3 : not found

/home/naphstor/node_modules/sqlite3/wscript:29: error: the configuration failed (see '/home/naphstor/node_modules/sqlite3/build/config.log')

npm ERR! error installing sqlite3@2.0.15 Error: sqlite3@2.0.15 preinstall: `node-waf clean || true; node-waf configure build`

npm ERR! error installing sqlite3@2.0.15 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1

npm ERR! error installing sqlite3@2.0.15 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)

npm ERR! error installing sqlite3@2.0.15 at ChildProcess.emit (events.js:70:17)

npm ERR! error installing sqlite3@2.0.15 at maybeExit (child_process.js:359:16)

npm ERR! error installing sqlite3@2.0.15 at Process.onexit (child_process.js:395:5)

npm ERR! sqlite3@2.0.15 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.15 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 Linux 3.0.0-12-generic

npm ERR! command "node" "/usr/local/bin/npm" "install" "sqlite3"

npm ERR! cwd /home/naphstor

npm ERR! node -v v0.5.11-pre

npm ERR! npm -v 1.0.106

npm ERR! code ELIFECYCLE

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /home/naphstor/npm-debug.log

npm not ok

naphstor@ubuntu:~$

任何想法为什么会这样.它在安装任何其他软件包时显示相同的错误.

我可以使用像“git clone git://github.com/developmentseed/node-sqlite3.git”这样的解决方法,但是想知道为什么在安装任何这些软件包时npm会出错.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值