0

I wanna deploy Firebase Function, but when I pass command firebase deploy, its show this error

Error: Error parsing triggers: Cannot find module 'firebase-fuctions' Try running "npm install" in your functions directory before deploying.

I installed npm install package, but won't work for me. I changed dependencies in package.json, but won't work for me. Please help me

Node version v8.9.3

npm version v5.5.1

firebase version 3.17.6

{
  "name": "functions",
  "description": "Cloud Functions for Firebase",
  "scripts": {
    "lint": "eslint .",
    "serve": "firebase serve --only functions",
    "shell": "firebase experimental:functions:shell",
    "start": "npm run shell",
    "deploy": "firebase deploy --only functions",
    "logs": "firebase functions:log"
  },
  "dependencies": {
    "firebase": "^4.11.0",
    "firebase-admin": "~5.2.1",
    "firebase-functions": "^0.6.2"
  },
  "devDependencies": {
    "eslint": "^4.12.0",
    "eslint-plugin-promise": "^3.6.0"
  },
  "private": true
}
8
  • Does node_modules directory contain firebase-functions?
    – camden_kid
    Mar 20, 2018 at 11:10
  • yes its fuctions contains node module folder Mar 20, 2018 at 11:14
  • I meant, in your functions directory does the node_modules directory contain the firebase-functions directory? Also, check this and make sure you are executing commands in the correct directory - firebase.google.com/docs/functions/…
    – camden_kid
    Mar 20, 2018 at 11:15
  • C:\Users\Skipper\Desktop\node\functions\node_modules\firebase-functions its exist Mar 20, 2018 at 11:19
  • 1
    thanks its solved by installing npm install firebase-functions@latest firebase-admin@latest --save in functions Folder.. thanks Bro] Mar 20, 2018 at 11:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.