简体   繁体   English

sqlite3 macOS Sierra

[英]sqlite3 macOS Sierra

Every single time I try to install sqlite3 in my mac, I get this error: 每当我尝试在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

The solution worked for me is, I have resolved by running npm cache clean --force and npm install sqlite3 --build-from-source --unsafe-perm command individually. 对我npm install sqlite3 --build-from-source --unsafe-perm的解决方案是,我已经通过分别运行npm cache clean --forcenpm install sqlite3 --build-from-source --unsafe-perm命令来解决。

This issue generally occurs because of authorization error on https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.11/node-v59-win32-x64.tar.gz 通常由于https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.11/node-v59-win32-x64.tar.gz上的授权错误而发生此问题

Hope that work for you. 希望为您工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM