Pra*_*ndi 13 cloud function firebase google-cloud-firestore
我是云功能的新手,正在测试这个示例代码https://github.com/firebase/functions-samples/tree/master/quickstarts/uppercase-firestore 由于nanomatch的错误而无法执行.在GitHub上查看nanomatch存储库这是一个列出的问题,并且回复到1.2.9会处理此错误.
我试图解决这个问题 - 但我该怎么做?有人可以指导我这个.感谢您的帮助.
TypeError: Cannot read property 'addQmark' of undefined
at Object.<anonymous> (/user_code/node_modules/firebase-admin/node_modules/nanomatch/lib/compilers.js:92:15)
at Object.visit (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:129:15)
at Object.mapVisit (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:143:12)
at Object.compile (/user_code/node_modules/firebase-admin/node_modules/snapdragon/lib/compiler.js:168:10)
at Snapdragon.compile (/user_code/node_modules/firebase-admin/node_modules/snapdragon/index.js:156:32)
at /user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:786:23
at memoize (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:859:13)
at Function.micromatch.compile (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:783:10)
at create (/user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:686:25)
at /user_code/node_modules/firebase-admin/node_modules/micromatch/index.js:695:16
Run Code Online (Sandbox Code Playgroud)
当这个问题在 GitHub 上报告时,导致该错误的版本已被恢复,而在发布后的几分钟内。要修复此问题,只需重新安装即可。您可能需要先删除 node_modules 和/或锁定文件,以确保 NPM 不使用缓存的版本。此对话属于 GitHub,以便我们可以回复用户反馈。我偶然发现了这个。StackOverflow 不提供支持)。
编辑2:看来firebase-admin本身也需要重新安装依赖项。我正在研究如何实现这一点。
请在 GitHub 上报告和检查问题、代码库所在位置以及此讨论所属的位置。
访问https://github.com/micromatch/nanomatch/issues/15了解更多信息。
| 归档时间: |
|
| 查看次数: |
628 次 |
| 最近记录: |