[英]Cannot find module 'firebase-admin'
I'm trying to push to cloud functions for my iOS app.我正在尝试为我的 iOS 应用推送到云功能。 I followed the Firebase does and installed node in my folder but now I'm getting this error trying to push it up
我遵循了 Firebase 并在我的文件夹中安装了节点,但现在我在尝试将其推送时遇到此错误
Error: Error parsing triggers: Cannot find module 'firebase-admin'
UPDATES更新
Trying to get latest firebase-admin returns invalid尝试获取最新的 firebase-admin 返回无效
Running npm uninstall firebase-admin
and then running npm install firebase-admin
puts out these errors...运行
npm uninstall firebase-admin
然后运行npm install firebase-admin
出现这些错误...
I got a similar issue in my project. 我的项目中遇到了类似的问题。 I solved it by removing the node_modules folder with
rm -rf node_modules
, then in package.json changing manually the versions for both firebase-functions to 0.7.3 and fire-amin to 5.5.0. 我通过使用
rm -rf node_modules
删除node_modules文件夹来解决它,然后在package.json中手动将rm -rf node_modules
-functions的版本更改为0.7.3,将fire- rm -rf node_modules
的版本更改为5.5.0。 After that just run npm install
again. 之后,再次运行
npm install
。
除了从 Windows 重新安装 Node.js 之外,没有什么对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.