简体   繁体   English

错误:解析触发器错误:找不到模块“ firebase-functions”

[英]Error: Error parsing triggers: Cannot find module 'firebase-functions'

I've encountered following error message whenever I've tried most of solutions related to that message. 每当我尝试与该消息相关的大多数解决方案时,都会遇到以下错误消息。 Please let me know how to fix it. 请让我知道如何解决它。 I've just clone source of https://github.com/davideast/hnpwa-firebase/ and deploy to my firebase account. 我只是克隆了https://github.com/davideast/hnpwa-firebase/的源并将其部署到我的firebase帐户。

I've already installed npm install inside functions folder. 我已经在functions文件夹中安装了npm install

My NodeJS version is v7.0.0 我的NodeJS版本是v7.0.0

i  deploying functions
i  functions: running predeploy script.

> functions@ build /Users/user/Documents/Projects/firebase/hnpwa-firebase/functions
> tslint -p tslint.json && ./node_modules/.bin/tsc

typeof-compare is deprecated. Starting from TypeScript 2.2 the compiler includes this check which makes this rule redundant.

WARNING: /Users/user/Documents/Projects/firebase/hnpwa-firebase/functions/src/index.ts[1, 13]: 'functions' is declared but its value is never read.

✔  functions: Finished running predeploy script.
i  functions: ensuring necessary APIs are enabled...
✔  functions: all necessary APIs are enabled
i  functions: preparing dist/server directory for uploading...

Error: Error parsing triggers: Cannot find module 'firebase-functions'

Try running "npm install" in your functions directory before deploying.

Try to install with the -g or save-dev argument. 尝试使用-g或save-dev参数进行安装。

npm install -g firebase-functions

npm install --save-dev firebase-functions

npm install firebase-functions

this pretty much fixes all of my problems with not finding modules. 这几乎解决了我所有找不到模块的问题。 :D :d

"dependencies": {
  "firebase-admin": "5.4.0",
  "firebase-functions": "0.7.0"
}

I've found solution that we're about to upgrade both dependencies firebase-admin and firebase-functions as follow. 我找到了将要升级依赖项firebase-adminfirebase-functions解决方案,如下所示。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase-节点云功能错误解析触发器:找不到模块“ firebase-functions” - Firebase - Node Cloud Functions Error parsing triggers: Cannot find module 'firebase-functions' Cloud Functions for Firebase firebase 部署错误:“解析触发器时出错:找不到模块‘firebase-admin’” - Cloud Functions for Firebase firebase deploy error: "Error parsing triggers: Cannot find module 'firebase-admin'" 部署 firebase 项目时出现错误显示“找不到模块 firebase-functions” - Error shows 'cannot find module firebase-functions' when deploying a firebase project 找不到模块'firebase-functions' - Cannot find module 'firebase-functions' 解析触发器时出错:找不到模块“csv-parse/sync” - Error parsing triggers: Cannot find module 'csv-parse/sync' Firebase 函数错误:找不到模块“诊断” - Firebase functions Error: Cannot find module 'diagnostics' Cloud Functions,Firebase:解析函数触发错误 - Cloud Functions, Firebase: parsing function triggers error Firebase 函数项目上的 VS Code“找不到模块”错误 - VS Code "Cannot find module" error on Firebase Functions Project 带有子目录的节点模块:“错误解析触发器:找不到模块‘ibm-watson’” - Node modules with sub-directories: "Error parsing triggers: Cannot find module 'ibm-watson'" Firebase 云函数:“解析 function 触发器时出错” - Firebase Cloud Functions: 'Error occurred while parsing your function triggers'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM