title: Error: functions predeploy error: Command terminated with non-zero exit code254
body: <p>I am using Mac. I have tried to read and implement the solution from this thread, but it doesnt work.
  <a href="https://stackoverflow.com/questions/48429390/firebase-deploy-errors-starting-with-non-zero-exit-code-space-in-project-path">Firebase deploy errors starting with non-zero exit code (space in project path)</a></p>
  
  <p>I get errors when deploying the code to firebase:</p>
  
  <blockquote>
    <p>i  deploying functions Running command: npm --prefix "%RESOURCE_DIR%"
    run lint npm ERR! path
    /Users/muchammadagunglaksana/Desktop/tsCobaDoangCloudFunction/%RESOURCE_DIR%/package.json
    npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR!
    enoent ENOENT: no such file or directory, open
    '/Users/muchammadagunglaksana/Desktop/tsCobaDoangCloudFunction/%RESOURCE_DIR%/package.json'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent</p>
    
    <p>npm ERR! A complete log of this run can be found in: npm ERR!<br>
    /Users/muchammadagunglaksana/.npm/_logs/2018-09-07T09_10_49_146Z-debug.log</p>
    
    <p>Error: functions predeploy error: Command terminated with non-zero
    exit code254
    <a href="https://i.stack.imgur.com/kza5w.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kza5w.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p>in <code>firebase.json</code> I have tried to modify and use:</p>
  
  <pre><code>"npm --prefix \"%RESOURCE_DIR%\" run lint"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yPKkP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yPKkP.png" alt="enter image description here"></a></p>
  
  <p>but i still get the error message like the picture above, what should I do?</p>