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"
to
"build": "node_modules/.bin/tslint -p tslint.json && tsc"
this will work for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With