Skip to content

functions predeploy error: Command terminated with non-zero exit code1 #737

@bobbakarthik

Description

@bobbakarthik

i deploying database, storage, firestore, functions, hosting
Running command: npm --prefix "$RESOURCE_DIR" run lint

functions@ lint C:\Users\aravi\AndroidStudioProjects\fluttergram\functions
eslint .

C:\Users\aravi\AndroidStudioProjects\fluttergram\functions\lib\getFeed.js
3:37 warning Unexpected function expression prefer-arrow-callback
6:77 warning Unexpected function expression prefer-arrow-callback
38:15 warning Unexpected function expression prefer-arrow-callback
40:31 warning Unexpected function expression prefer-arrow-callback

C:\Users\aravi\AndroidStudioProjects\fluttergram\functions\lib\index.js
3:37 warning Unexpected function expression prefer-arrow-callback
6:77 warning Unexpected function expression prefer-arrow-callback

C:\Users\aravi\AndroidStudioProjects\fluttergram\functions\lib\notificationHandler.js
3:37 warning Unexpected function expression prefer-arrow-callback
6:77 warning Unexpected function expression prefer-arrow-callback
48:15 error Each then() should return a value or throw promise/always-return

✖ 9 problems (1 error, 8 warnings)
0 errors and 8 warnings potentially fixable with the --fix option.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ lint: eslint .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ lint 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\aravi\AppData\Roaming\npm-cache_logs\2020-06-16T05_04_47_715Z-debug.log
events.js:292
throw er; // Unhandled 'error' event
^

Error: spawn npm --prefix "%RESOURCE_DIR%" run lint ENOENT
at notFoundError (C:\Users\aravi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\aravi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (C:\Users\aravi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\aravi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm --prefix "%RESOURCE_DIR%" run lint',
path: 'npm --prefix "%RESOURCE_DIR%" run lint',
spawnargs: []
}

Error: functions predeploy error: Command terminated with non-zero exit code1

C:\Users\aravi\AndroidStudioProjects\fluttergram>firebase deploy --fix

at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) {

code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm --prefix "%RESOURCE_DIR%" run lint',
path: 'npm --prefix "%RESOURCE_DIR%" run lint',
spawnargs: []
}

Error: functions predeploy error: Command terminated with non-zero exit code1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions