0

I have been struggling with firebase deploy issue for quite a few hours now , but nothing seems to be working I have tried this and this but no luck .

this is what i am stuck at:

  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

does this mean i am missing some packages in firebase-tools? i have also installed the firebase-tools multiple times , tried pretty much every thing in above mentioned links but nothing seems to be working

2
  • What Node version are you running locally? This is usually a result of using syntax features unsupported by your current Node version. Commented Apr 1, 2021 at 19:25
  • @MichaelBleigh i am using v14.16.0 Commented Apr 1, 2021 at 19:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.