Node sqlite node-gyp build error: no member named

2019-02-23 11:11发布

问题:

I am getting a build error when trying to install global packages that depend on sqlite3. I am not quite sure how to go about debugging node build errors like this so any help is appreciated. From searching, I can tell that at least the xcode error is not the problem.

I recently updated OSSierra and Node

OSSierra: 10.13.4
Node: 10.0.0
Yarn: 1.6.0

The command I am running this time. I have experienced the same error doing a global install of other packages, so I don't think the exact npm package is important...

$ yarn global add import-js

The Error

yarn global v1.6.0
(node:17489) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4]