'eslint' 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@ 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\SURAJ SURESH\AppData\Roaming\npm-cache\_logs\2019-02-21T14_17_08_699Z-debug.log
events.js:174
throw er; // Unhandled 'error' event
^
Error: spawn npm --prefix "C:\Users\SURAJ SURESH\Desktop\firecast\functions" run lint ENOENT
at notFoundError (C:\Users\SURAJ SURESH\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\SURAJ SURESH\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\SURAJ SURESH\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:248:12)
Emitted 'error' event at:
at ChildProcess.cp.emit (C:\Users\SURAJ SURESH\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:248:12)
Error: functions predeploy error: Command terminated with non-zero exit code1
Я впервые использую функции firbase.Я попытался развернуть функции, и это случилось.Я попытался отредактировать файл firebase.json из
{
"functions": {
"predeploy": [
"npm --prefix \"RESOURCE_DIR\" run lint"
]
}
}
в
{
"functions": {
"predeploy": [
"npm --prefix \"%RESOURCE_DIR%\" run lint"
]
}
}
Но ничего не получилось.Я просто следовал руководству Firecast, чтобы начать работу с облачными функциями Firebase.