每次在我的Mac上尝试安装SQLite3时,我都会遇到这个错误:
sh: node-pre-gyp: command not found
npm WARN quiz@1.0.0 No repository field.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the sqlite3@3.1.13 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/luis/.npm/_logs/2018-03-09T09_16_15_084Z-debug.log
sqlite3
的 npm 包还是数据库本身? - Gokul Chandrasekaran