How to install npm package on cloud function

I need run this code: const { ethers } = require(“ethers”);
but in cloud function, how can I do this?
How about other npm package if I want to import?

Cloud functions don’t support ethers .

You can use web3.js docs

1 Like