Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase deploy of Cloud Functions fail with TypeScript

I want to host my Ionic app to firebase hosting. Now when I run firebase deploy command I got below error

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ build: `tslint -p tslint.json && ./node_modules/.bin/tsc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Error: functions predeploy command terminated with non-zero exit code1

What I am missing to work this properly

like image 990
Azam Alvi Avatar asked Dec 09 '17 19:12

Azam Alvi


1 Answers

Change in Package.json

"build": "node_modules/.bin/tslint -p tslint.json && ./node_modules/.bin/tsc"

to

"build": "node_modules/.bin/tslint -p tslint.json && tsc"

this will work for you.

like image 73
Govindarajan Avatar answered Oct 24 '22 04:10

Govindarajan