title: serverless-framework, EISDIR: illegal operation on a directory, read
body: <p>When I try to <code>package</code> a service using: </p>
  
  <p><code>SLS_DEBUG=* $(npm bin)/serverless package</code></p>
  
  <p><code>serverless-framework</code> give me an error:</p>
  
  <pre class="lang-sh prettyprint-override"><code>  Error --------------------------------------------------
  
    EISDIR: illegal operation on a directory, read
  
       For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
  
    Stack Trace --------------------------------------------
  
  Error: EISDIR: illegal operation on a directory, read
      at Object.fs.readSync (fs.js:675:18)
      at tryReadSync (fs.js:540:20)
      at Object.fs.readFileSync (fs.js:583:19)
      at GoogleProvider.getAuthClient (/Users/ldu020/workspace/serverless-functions/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js:72:31)
      at GoogleProvider.request (/Users/ldu020/workspace/serverless-functions/node_modules/serverless-google-cloudfunctions/provider/googleProvider.js:43:29)
      at GooglePackage.setDeploymentBucketName (/Users/ldu020/workspace/serverless-functions/node_modules/serverless-google-cloudfunctions/shared/setDeploymentBucketName.js:22:26)
  From previous event:
      at Object.package:initialize [as hook] (/Users/ldu020/workspace/serverless-functions/node_modules/serverless-google-cloudfunctions/package/googlePackage.js:44:10)
      at BbPromise.reduce (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/lib/classes/PluginManager.js:390:55)
  From previous event:
      at PluginManager.invoke (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/lib/classes/PluginManager.js:390:22)
      at PluginManager.run (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/lib/classes/PluginManager.js:421:17)
      at variables.populateService.then.then (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/lib/Serverless.js:157:33)
      at runCallback (timers.js:810:20)
      at tryOnImmediate (timers.js:768:5)
      at processImmediate [as _immediateCallback] (timers.js:745:5)
  From previous event:
      at Serverless.run (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/lib/Serverless.js:144:8)
      at serverless.init.then (/Users/ldu020/workspace/serverless-functions/node_modules/serverless/bin/serverless:43:50)
      at &lt;anonymous&gt;
  </code></pre>
  
  <p>How can I solve this? Thanks.</p>