errors on both Mac and PC when trying to deploy firebase functions.
newest tsc installed, with and without the firebase-functions upgrade with and without the firebase admin updates
when running firebase init the firebase.json file gets changed. I have run both versions of the json file but neither one can deploy the functions
changed firebase.json after running firebase init
in firebase.json:
using the %RESOURCE_DIR% trick results in the command hanging and not finishing
using the ./functions trick, the command did not complete.
`=== Deploying to 'angularfirebasedemoapp'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
npm ERR! missing script: lint
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/loganwalsh/.npm/_logs/2018-04-26T21_19_22_371Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code1`
===================================================================
Deploying with the %RESOURCE_DIR% trick
=== Deploying to 'angularfirebasedemoapp'...
i deploying functions
Running command: npm --prefix %RESOURCE_DIR% run build
functions@ build E:_Companies-I-Own\aa\stripeDemo\functions
tslint -p tslint.json && ./node_modules/.bin/tsc
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/api.ts[3, 13]: 'connect' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 10]: 'stripe' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 22]: 'stripeClientId' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[74, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[109, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/webhooks.ts[2, 1]: All imports are unused.
'.' is not recognized as an internal or external command,
operable program or batch file.
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Logan\AppData\Roaming\npm-cache_logs\2018-04-26T22_45_11_500Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code1
===================================================================
Deploying with the ./functions trick
=== Deploying to 'angularfirebasedemoapp'...
i deploying functions
Running command: npm --prefix ./functions run build
functions@ build E:_Companies-I-Own\aa\stripeDemo\functions
tslint -p tslint.json && ./node_modules/.bin/tsc
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/api.ts[3, 13]: 'connect' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 10]: 'stripe' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 22]: 'stripeClientId' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[74, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[109, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/webhooks.ts[2, 1]: All imports are unused.
'.' is not recognized as an internal or external command,
operable program or batch file.
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Logan\AppData\Roaming\npm-cache_logs\2018-04-26T22_49_06_547Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code1
...
==================================================================
==================================================================
original firebase.json copied from the github
E:_Companies-I-Own\aa\stripeDemo>firebase deploy --only functions
=== Deploying to 'angularfirebasedemoapp'...
i deploying functions
Running command: npm --prefix functions run build
functions@ build E:_Companies-I-Own\aa\stripeDemo\functions
tslint -p tslint.json && ./node_modules/.bin/tsc
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/api.ts[3, 13]: 'connect' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 10]: 'stripe' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/auth.ts[2, 22]: 'stripeClientId' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[74, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/helpers.ts[109, 11]: 'card' is declared but its value is never read.
WARNING: E:/_Companies-I-Own/aa/stripeDemo/functions/src/app/webhooks.ts[2, 1]: All imports are unused.
'.' is not recognized as an internal or external command,
operable program or batch file.
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.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Logan\AppData\Roaming\npm-cache_logs\2018-04-27T20_58_21_890Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code1
==================================================================
followed the instructions in Initial Setup video but cannot get past this part.
No matter what I've tried, I cannot get the firebase functions to deploy