我已经为 firebase 部署问题苦苦挣扎了好几个小时,但似乎没有任何效果 我试过 this 和 this 但没有运气。
这就是我所坚持的:
13:37 error Parsing error: Unexpected token =>
✖ 1 problem (1 error, 0 warnings)
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn npm --prefix "C:\Users\r\Desktop\cfnc\functions" run lint ENOENT
at notFoundError (C:\Users\r\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\r\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\r\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:277:12)
Emitted 'error' event on ChildProcess instance at:
at ChildProcess.cp.emit (C:\Users\r\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:277:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn npm --prefix "C:\\Users\\r\\Desktop\\cfnc\\functions" run lint',
path: 'npm --prefix "C:\\Users\\r\\Desktop\\cfnc\\functions" run lint',
spawnargs: []
}
Error: functions predeploy error: Command terminated with non-zero exit code1
Having trouble? Try firebase [command] --help
这是否意味着我缺少 firebase-tools 中的一些软件包?我还多次安装了 firebase-tools,几乎尝试了上述链接中的所有内容,但似乎没有任何效果