如何解决node-pre-gyp ERR 错误 - 纱线节点 v.14.0.0
当我尝试通过 yarn
node-pre-gyp ERR! cwd /home/app/node_modules/sqlite3
node-pre-gyp ERR! node -v v14.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
我不得不更新代码中的一些内容并将节点更改为版本 14.x.x 之后出现错误
首先,我尝试过:
rm yarn.lock && yarn
yarn upgrade
我已清除缓存但错误仍然出现(yarn cache clean
和 yarn cache clean sqllite3
)
也按这个顺序试过:
rm yarn.lock
yarn cache clean
yarn
还有……
yarn global add node-gyp
然后 yarn global remove node-gyp
我认为 grpc
库的那个版本很旧并且与 Node 的那个版本不兼容,所以我尝试了:
npm install grpc --build-from-source
有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。