sqlite3 macOS Sierra

3

每次在我的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
我正在安装npm软件包。 - ILDEF ONSO
你能在这里提供安装命令吗? - Suhas Gavad
1个回答

7

或者您可以将 sqlite3 的版本从 ^3 更新到 ^4。 - Allen

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接