mvasco
mvasco

Reputation: 5107

Installing Stripe dependencies in Firebase CLI for a Flutter app

I am trying to integrate Stripe into my Flutter app.

I have finished the Flutter part of it and now I am trying to use Firebase Cloud functions to manage the server side part of the Stripe payment.

I have installed Firebase CLI on my Mac.

Then I have open the Mac terminal and put the command

firebase init

Then I have selected the Functions option, then I have selected an existing project, then I have selected JavaScript for language, then I have selected YES to install the dependencies with npm.

Then I have put cd functions to enter into the functions folder.

Inside the functions folder I have put npm install stripe --save

but an error is shown:

enter image description here

I would like to know what am I missing in order to install Stripe dependencies to be use with my Firebase project.

Upvotes: 0

Views: 340

Answers (2)

Bhaskar D
Bhaskar D

Reputation: 1

Install node with homebrew

brew install node

Upvotes: 0

Renaud Tarnec
Renaud Tarnec

Reputation: 83068

It seems that you need to install Node.js and the npm command line interface.

The previous steps described in your question are the correct ones.

Upvotes: 1

Related Questions