安装angularfire2和firebase的npm错误

时间:2018-04-04 01:08:18

标签: node.js firebase npm-install angularfire2 grpc

我试图像这样使用npm安装angularfire2和firebase

$this->execute(array(':name' => $post['name'], ':email' => $post['email'], ':id'=>$post['id']));

我遇到的问题是

$ npm install angularfire2 firebase --save

我查看了文档,was a post that mentioned something about the version of grpc@1.10.1 not being good。我不知道它是否与我的具体问题有关我使用角度5和节点8.10我的版本的npm是5.6.0任何关于问题的知识都将非常感激。对于有类似问题的人I am also looking into using a cdn for firebase(我没有完全完成对它的研究,所以不要相信我的话)。

2 个答案:

答案 0 :(得分:3)

使用此命令

 marksample touse 
 markout `vars' 
 generate u = runiform(0,1) if `touse' 

答案 1 :(得分:0)

如果你仔细观察,你会看到这个错误:

追踪(最近一次通话):   文件“./gyp-mac-tool”,第611行,in     sys.exit(主(sys.argv中[1:]))   在主要文件中输入“./gyp-mac-tool”,第28行     exit_code = executor.Dispatch(args)   在Dispatch中输入“./gyp-mac-tool”,第43行     return getattr(self,method)(* args [1:])   在ExecFilterLibtool中输入“./gyp-mac-tool”,第246行     如果不是libtool_re.match(行)而不是libtool_re5.match(行): TypeError:不能在类字节对象上使用字符串模式

这是一个python错误。确保你的路径上有python 2.7,而不是3.x,因为这个工具不支持3.x。