Got Error when using netlify-cli Deploy

I have got Error Message when using netlify-cli deploy:

#netlify deploy --dir=dist --prod

Deploy path: ***/dist
Functions path: ***/functions
Configuration path: ***/netlify.toml
Deploying to live site URL…
⠂ Hashing files… › Warning:
› {}

Error: Could not find “firebase-functions” module in file: /functions/index.js.
Please ensure “firebase-functions” is installed in the project.
at handle (/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/finders.js:76:17)
at /usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/finders.js:105:11
at Array.forEach ()
at getDependencies (/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/finders.js:98:8)
at filesForFunctionZip (/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/zip.js:68:7)
at zipJs (/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/zip.js:113:3)
at zipFunction (/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/zip.js:146:12)
at /usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/src/zip.js:184:9
at /usr/local/lib/node_modules/netlify-cli/node_modules/p-all/index.js:4:67
at /usr/local/lib/node_modules/netlify-cli/node_modules/p-all/node_modules/p-map/index.js:47:21

So…is firebase-functions in your package.json or somehow included in the config specifically in your repo? A good test would be: “on a new laptop, could that package be found without installing that package globally or on my path outside of what the code in the repo contains as far as configuration?”