goto functions folder(cd functions) install dependency with npm install and build project with npm run build and deploy on firebase with npm run deploy
cd functions
npm install
npm run build
npm run deploy