大佬教程收集整理的这篇文章主要介绍了node.js – npm install 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.<anonymous> (/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会出错.
以上是大佬教程为你收集整理的node.js – npm install sqlite3错误全部内容,希望文章能够帮你解决node.js – npm install sqlite3错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。