Error shows 'cannot find module firebase-functions' when deploying a firebase project

Pradeep.T picture Pradeep.T · Apr 21, 2017 · Viewed 11.3k times · Source

When I am trying to deploy a firebase project it shows an error message 'cannot find module firebase-functions' in npm console.The steps(node commands) I have done are:

  1. npm install -g firebase-tools
  2. firebase login
  3. firebase init

and finally where I stucked is
4. firebase deploy

Please help me.

Answer

Prajwal Waingankar picture Prajwal Waingankar · Jun 16, 2019

It's simple! If it says can't find module firebase-functions then install them.

     npm install firebase-functions