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
Change in Package.json
"build": "node_modules/.bin/tslint -p tslint.json && ./node_modules/.bin/tsc"
"build": "node_modules/.bin/tslint -p tslint.json && tsc"
this will work for you.
functions folder a cause can be an error in some
.ts file (
index.ts or other file that you manually created), but it doesn’t show on log
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Ebook Reviews
- PES Matches, Skills & News