title: firebase deployment failure
body: <p>Hi so I've no problems with commands until this point. I've tried a few different solutions for this from what I found such as clear cache and firebase functions cmd. But I keep getting this error. Iread up on a few resources too and none have worked. Do you guys have any suggestions?</p>
  <pre><code>  1:7  error  'functions' is assigned a value but never used  no-unused-vars
  
  ✖ 1 problem (1 error, 0 warnings)
  
  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\Owner\AppData\Roaming\npm-cache\_logs\2021-01-19T04_28_58_025Z-debug.log
  events.js:292
        throw er; // Unhandled 'error' event
        ^
  
  Error: spawn npm --prefix &quot;%RESOURCE_DIR%&quot; run lint ENOENT
      at notFoundError (C:\Users\Owner\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\cross-env\node_modules\cross-spawn\lib\enoent.js:6:26)
      at verifyENOENT (C:\Users\Owner\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\Owner\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\Owner\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 &quot;%RESOURCE_DIR%&quot; run lint',
    path: 'npm --prefix &quot;%RESOURCE_DIR%&quot; run lint',
    spawnargs: []
  }
  
  Error: functions predeploy error: Command terminated with non-zero exit code1
  </code></pre>
  <p>index.js functions</p>
  <pre><code>const functions = require(&quot;firebase-functions&quot;);
  
  // // Create and Deploy Your First Cloud Functions
  // // https://firebase.google.com/docs/functions/write-firebase-functions
  //
  // exports.helloWorld = functions.https.onRequest((request, response) =&gt; {
  //   functions.logger.info(&quot;Hello logs!&quot;, {structuredData: true});
  //   response.send(&quot;Hello from Firebase!&quot;);
  // });
  </code></pre>
  <p>Package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;functions&quot;,
    &quot;description&quot;: &quot;Cloud Functions for Firebase&quot;,
    &quot;scripts&quot;: {
      &quot;lint&quot;: &quot;eslint .&quot;,
      &quot;serve&quot;: &quot;firebase emulators:start --only functions&quot;,
      &quot;shell&quot;: &quot;firebase functions:shell&quot;,
      &quot;start&quot;: &quot;npm run shell&quot;,
      &quot;deploy&quot;: &quot;firebase deploy --only functions&quot;,
      &quot;logs&quot;: &quot;firebase functions:log&quot;
    },
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;12&quot;
    },
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;dependencies&quot;: {
      &quot;firebase-admin&quot;: &quot;^9.2.0&quot;,
      &quot;firebase-functions&quot;: &quot;^3.11.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;eslint&quot;: &quot;^7.6.0&quot;,
      &quot;eslint-config-google&quot;: &quot;^0.14.0&quot;,
      &quot;firebase-functions-test&quot;: &quot;^0.2.0&quot;
    },
    &quot;private&quot;: true
  }
  </code></pre>
  <p>debug.log</p>
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [
  1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
  1 verbose cli   'C:\\Users\\Owner\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
  1 verbose cli   '--prefix',
  1 verbose cli   'C:\\Users\\Owner\\Desktop\\amazon-react\\functions',
  1 verbose cli   'run',
  1 verbose cli   'lint'
  1 verbose cli ]
  2 info using npm@6.14.11
  3 info using node@v14.15.3
  4 verbose run-script [ 'prelint', 'lint', 'postlint' ]
  5 info lifecycle functions@~prelint: functions@
  6 info lifecycle functions@~lint: functions@
  7 verbose lifecycle functions@~lint: unsafe-perm in lifecycle true
  8 verbose lifecycle functions@~lint: PATH: C:\Users\Owner\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Owner\Desktop\amazon-react\functions\node_modules\.bin;C:\Python39\Scripts\;C:\Python39\;C:\Program Files\Java\jdk1.8.0_261\bin;JAVA_HOME\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Common Files\Acronis\VirtualFile\;C:\Program Files (x86)\Common Files\Acronis\VirtualFile64\;C:\Program Files (x86)\Common Files\Acronis\FileProtector\;C:\Program Files (x86)\Common Files\Acronis\FileProtector64\;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\;C:\Program Files (x86)\Brackets\command;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;&quot;;C:\mongodb&quot;;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Local\atom\bin;C:\Users\Owner\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Owner\AppData\Local\Microsoft\WindowsApps;C:\Users\Owner\AppData\Roaming\npm;C:\Program Files\MongoDB\Server\4.4\bin;
  9 verbose lifecycle functions@~lint: CWD: C:\Users\Owner\Desktop\amazon-react\functions
  10 silly lifecycle functions@~lint: Args: [ '/d /s /c', 'eslint .' ]
  11 silly lifecycle functions@~lint: Returned: code: 1  signal: null
  12 info lifecycle functions@~lint: Failed to exec lint script
  13 verbose stack Error: functions@ lint: `eslint .`
  13 verbose stack Exit status 1
  13 verbose stack     at EventEmitter.&lt;anonymous&gt; (C:\Users\Owner\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
  13 verbose stack     at EventEmitter.emit (events.js:315:20)
  13 verbose stack     at ChildProcess.&lt;anonymous&gt; (C:\Users\Owner\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:315:20)
  13 verbose stack     at maybeClose (internal/child_process.js:1048:16)
  13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
  14 verbose pkgid functions@
  15 verbose cwd C:\Users\Owner\Desktop\amazon-react
  16 verbose Windows_NT 10.0.19041
  17 verbose argv &quot;C:\\Program Files\\nodejs\\node.exe&quot; &quot;C:\\Users\\Owner\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--prefix&quot; &quot;C:\\Users\\Owner\\Desktop\\amazon-react\\functions&quot; &quot;run&quot; &quot;lint&quot;
  18 verbose node v14.15.3
  19 verbose npm  v6.14.11
  20 error code ELIFECYCLE
  21 error errno 1
  22 error functions@ lint: `eslint .`
  22 error Exit status 1
  23 error Failed at the functions@ lint script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [ 1, true ]
  </code></pre>
  <p>Installation</p>
  <pre><code>C:\Users\Owner\Desktop\amazon-react&gt;npm install npm -g
  C:\Users\Owner\AppData\Roaming\npm\npm -&gt; C:\Users\Owner\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
  C:\Users\Owner\AppData\Roaming\npm\npx -&gt; C:\Users\Owner\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js
  + npm@6.14.11
  added 435 packages from 889 contributors in 17.675s
  
  C:\Users\Owner\Desktop\amazon-react&gt;firebase init functions
  
       ######## #### ########  ######## ########     ###     ######  ########
       ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
       ######    ##  ########  ######   ########  #########  ######  ######
       ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
       ##       #### ##     ## ######## ########  ##     ##  ######  ########
  
  You're about to initialize a Firebase project in this directory:
  
    C:\Users\Owner\Desktop\amazon-react
  
  Before we get started, keep in mind:
  
    * You are initializing in an existing Firebase project directory
  
  ? Are you ready to proceed? Yes
  
  === Project Setup
  
  First, let's associate this project directory with a Firebase project.
  You can create multiple project aliases by running firebase use --add,
  but for now we'll just set up a default project.
  
  i  .firebaserc already has a default project, using fir-a38d0.
  
  === Functions Setup
  
  A functions directory will be created in your project with a Node.js
  package pre-configured. Functions can be deployed with firebase deploy.
  
  ? What language would you like to use to write Cloud Functions? JavaScript
  ? Do you want to use ESLint to catch probable bugs and enforce style? Yes
  ? File functions/package.json already exists. Overwrite? Yes
  +  Wrote functions/package.json
  ? File functions/.eslintrc.js already exists. Overwrite? (y/N) ? File functions/index.js alre? File functions/.eslintrc.js already exists. Overwrite? Yes
  ? File functions/index.js already exists. Overwrite? Yes
  +  Wrote functions/.eslintrc.js
  +  Wrote functions/index.js
  ? File functions/.gitignore already exists. Overwrite? Yes
  +  Wrote functions/.gitignore
  ? Do you want to install dependencies with npm now? Yes
  audited 300 packages in 1.354s
  
  20 packages are looking for funding
    run `npm fund` for details
  
  found 0 vulnerabilities
  
  
  i  Writing configuration info to firebase.json...
  i  Writing project information to .firebaserc...
  
  +  Firebase initialization complete!
  
  C:\Users\Owner\Desktop\amazon-react&gt;firebase deploy
  
  === Deploying to 'fir-a38d0'...
  
  i  deploying database, storage, firestore, functions, hosting, remoteconfig
  Running command: npm --prefix &quot;$RESOURCE_DIR&quot; run lint
  
  &gt; functions@ lint C:\Users\Owner\Desktop\amazon-react\functions
  &gt; eslint .
  
  
  C:\Users\Owner\Desktop\amazon-react\functions\index.js
  </code></pre>