functions predeploy error: Command terminated with non-zero exit code2
up vote
1
down vote
favorite
I am trying to deploy my Cloud Function in ionic framework using cmd prompt:
firebase deploy --only functions
It's ok.
But when I add @types/googlemaps into my project using cmd prompt:
npm install --save @types/googlemaps
When I predeploy my project, it has error:
i deploying functions
Running command: npm --prefix "%RESOURCE_DIR%" run lint
> functions@ lint C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tslint --project tsconfig.json
Running command: npm --prefix "%RESOURCE_DIR%" run build
> functions@ build C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tsc
../node_modules/@types/googlemaps/index.d.ts(43,25): error TS2304: Cannot find name 'Element'.
../node_modules/@types/googlemaps/index.d.ts(856,32): error TS2304: Cannot find name 'Node'.
../node_modules/@types/googlemaps/index.d.ts(1780,60): error TS2304: Cannot find name 'Document'.
../node_modules/@types/googlemaps/index.d.ts(2601,31): error TS2304: Cannot find name 'HTMLInputElement'.
../node_modules/@types/googlemaps/index.d.ts(2782,34): error TS2304: Cannot find name 'HTMLDivElement'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
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:UsersPhuDuongAppDataRoamingnpm-cache_logs2018-11-09T07_31_14_838Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code2
Is there a way to fix this? Thanks
firebase google-maps ionic3 google-cloud-functions
add a comment |
up vote
1
down vote
favorite
I am trying to deploy my Cloud Function in ionic framework using cmd prompt:
firebase deploy --only functions
It's ok.
But when I add @types/googlemaps into my project using cmd prompt:
npm install --save @types/googlemaps
When I predeploy my project, it has error:
i deploying functions
Running command: npm --prefix "%RESOURCE_DIR%" run lint
> functions@ lint C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tslint --project tsconfig.json
Running command: npm --prefix "%RESOURCE_DIR%" run build
> functions@ build C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tsc
../node_modules/@types/googlemaps/index.d.ts(43,25): error TS2304: Cannot find name 'Element'.
../node_modules/@types/googlemaps/index.d.ts(856,32): error TS2304: Cannot find name 'Node'.
../node_modules/@types/googlemaps/index.d.ts(1780,60): error TS2304: Cannot find name 'Document'.
../node_modules/@types/googlemaps/index.d.ts(2601,31): error TS2304: Cannot find name 'HTMLInputElement'.
../node_modules/@types/googlemaps/index.d.ts(2782,34): error TS2304: Cannot find name 'HTMLDivElement'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
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:UsersPhuDuongAppDataRoamingnpm-cache_logs2018-11-09T07_31_14_838Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code2
Is there a way to fix this? Thanks
firebase google-maps ionic3 google-cloud-functions
I fixed by adding"dom"
tocompilerOptions.lib
in./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749
– Phú Dnp
21 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to deploy my Cloud Function in ionic framework using cmd prompt:
firebase deploy --only functions
It's ok.
But when I add @types/googlemaps into my project using cmd prompt:
npm install --save @types/googlemaps
When I predeploy my project, it has error:
i deploying functions
Running command: npm --prefix "%RESOURCE_DIR%" run lint
> functions@ lint C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tslint --project tsconfig.json
Running command: npm --prefix "%RESOURCE_DIR%" run build
> functions@ build C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tsc
../node_modules/@types/googlemaps/index.d.ts(43,25): error TS2304: Cannot find name 'Element'.
../node_modules/@types/googlemaps/index.d.ts(856,32): error TS2304: Cannot find name 'Node'.
../node_modules/@types/googlemaps/index.d.ts(1780,60): error TS2304: Cannot find name 'Document'.
../node_modules/@types/googlemaps/index.d.ts(2601,31): error TS2304: Cannot find name 'HTMLInputElement'.
../node_modules/@types/googlemaps/index.d.ts(2782,34): error TS2304: Cannot find name 'HTMLDivElement'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
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:UsersPhuDuongAppDataRoamingnpm-cache_logs2018-11-09T07_31_14_838Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code2
Is there a way to fix this? Thanks
firebase google-maps ionic3 google-cloud-functions
I am trying to deploy my Cloud Function in ionic framework using cmd prompt:
firebase deploy --only functions
It's ok.
But when I add @types/googlemaps into my project using cmd prompt:
npm install --save @types/googlemaps
When I predeploy my project, it has error:
i deploying functions
Running command: npm --prefix "%RESOURCE_DIR%" run lint
> functions@ lint C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tslint --project tsconfig.json
Running command: npm --prefix "%RESOURCE_DIR%" run build
> functions@ build C:UsersPhuDuongDesktopProjecttestFireStorefunctions
> tsc
../node_modules/@types/googlemaps/index.d.ts(43,25): error TS2304: Cannot find name 'Element'.
../node_modules/@types/googlemaps/index.d.ts(856,32): error TS2304: Cannot find name 'Node'.
../node_modules/@types/googlemaps/index.d.ts(1780,60): error TS2304: Cannot find name 'Document'.
../node_modules/@types/googlemaps/index.d.ts(2601,31): error TS2304: Cannot find name 'HTMLInputElement'.
../node_modules/@types/googlemaps/index.d.ts(2782,34): error TS2304: Cannot find name 'HTMLDivElement'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
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:UsersPhuDuongAppDataRoamingnpm-cache_logs2018-11-09T07_31_14_838Z-debug.log
Error: functions predeploy error: Command terminated with non-zero exit code2
Is there a way to fix this? Thanks
firebase google-maps ionic3 google-cloud-functions
firebase google-maps ionic3 google-cloud-functions
edited 23 hours ago
asked yesterday
Phú Dnp
144
144
I fixed by adding"dom"
tocompilerOptions.lib
in./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749
– Phú Dnp
21 hours ago
add a comment |
I fixed by adding"dom"
tocompilerOptions.lib
in./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749
– Phú Dnp
21 hours ago
I fixed by adding
"dom"
to compilerOptions.lib
in ./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749– Phú Dnp
21 hours ago
I fixed by adding
"dom"
to compilerOptions.lib
in ./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749– Phú Dnp
21 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53222161%2ffunctions-predeploy-error-command-terminated-with-non-zero-exit-code2%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I fixed by adding
"dom"
tocompilerOptions.lib
in./functions/tsconfig.json
. More information: github.com/firebase/firebase-tools/issues/749– Phú Dnp
21 hours ago