Node.js - Firebase导入返回在Raspberry Pi Zero上运行的非法指令

问题描述 投票:2回答:1

我尝试使用服务器和客户端SDK,并且都返回Illegal Instruction

  • 使用客户端SDK,只需要var firebase = require("firebase");即可返回;
  • 使用服务器SDK,它在尝试写入Firestore document时返回它。

我在RaspberryPi Zero W上运行它,Node版本是10.9.0,Npm版本是6.2.0。我从https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-armv6l.tar.gz安装了它

感谢您提供的任何帮助。

node.js firebase raspberry-pi
1个回答
4
投票

只需在您的代码文件夹上运行此命令,大约需要10分钟或更长时间:

sudo npm rebuild --build-from-source grpc

更多细节:https://groups.google.com/forum/#!topic/google-cloud-firestore-discuss/rYGlhi9nQTE

希望这对你有所帮助。

问候,

© www.soinside.com 2019 - 2024. All rights reserved.