Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package.json indicates an outdated version of firebase-functions

I have Cloud functions project and i moved the project from my old laptop to my new laptop.

I have installed everything that necessary. My problem is when i try "firebase deply" it gives me that error:

! functions: package.json indicates an outdated version of firebase-functions. Please upgrade using npm install --save firebase-functions@latest in your functions directory.

I did that i have been told, but still it gives me the same error. What should i do? And how i direct the npm install to my functions directory?

like image 786
E.Bolandian Avatar asked Apr 27 '19 11:04

E.Bolandian


People also ask

Does firebase support Node JS?

Important: Node. js versions 10, 12, 14, and 16 are supported.

What is firebase function?

Firebase gives mobile developers access to a complete range of fully managed mobile-centric services including analytics, authentication and Realtime Database. Cloud Functions rounds out the offering by providing a way to extend and connect the behavior of Firebase features through the addition of server-side code.


1 Answers

You need to run sudo npm install --save firebase-functions@latest in your functions directory. Cannot be in any other directory.

In Flutter this will be in

/path_to_your_flutter_project/functions

Hope this helped someone

like image 162
Zenko Avatar answered Nov 15 '22 01:11

Zenko