{"action":"opened","issue":{"url":"https://api.github.com/repos/doapp-ryanp/serverless-plugin-browserify/issues/2","repository_url":"https://api.github.com/repos/doapp-ryanp/serverless-plugin-browserify","labels_url":"https://api.github.com/repos/doapp-ryanp/serverless-plugin-browserify/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/doapp-ryanp/serverless-plugin-browserify/issues/2/comments","events_url":"https://api.github.com/repos/doapp-ryanp/serverless-plugin-browserify/issues/2/events","html_url":"https://github.com/doapp-ryanp/serverless-plugin-browserify/issues/2","id":193835663,"number":2,"title":"file already exists, mkdir '/var/folders...","user":{"login":"tchock","id":1235818,"avatar_url":"https://avatars.githubusercontent.com/u/1235818?v=3","gravatar_id":"","url":"https://api.github.com/users/tchock","html_url":"https://github.com/tchock","followers_url":"https://api.github.com/users/tchock/followers","following_url":"https://api.github.com/users/tchock/following{/other_user}","gists_url":"https://api.github.com/users/tchock/gists{/gist_id}","starred_url":"https://api.github.com/users/tchock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchock/subscriptions","organizations_url":"https://api.github.com/users/tchock/orgs","repos_url":"https://api.github.com/users/tchock/repos","events_url":"https://api.github.com/users/tchock/events{/privacy}","received_events_url":"https://api.github.com/users/tchock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T17:33:18Z","updated_at":"2016-12-06T17:33:18Z","closed_at":null,"body":"When trying to use `serverless deploy` with the browserify plugin added I'll get the following error:\r\n\r\n```\r\nError: EEXIST: file already exists, mkdir '/var/folders/4w/_0f5wg2145z8vp3jbq56fzlm0000gn/T/locationCreate'\r\n```\r\n\r\nI looked into the *'/var/folders/4w/_0f5wg2145z8vp3jbq56fzlm0000gn/T/* folder during execution and the folders are created when the \"Bundling ... with Browserify\" output happens. It takes some time and and then the error pops up.\r\n\r\nCurrently I'm using Serverless **1.2.0**.\r\n\r\nHere is the complete output:\r\n```\r\nserverless deploy\r\nServerless: Bundling locationCreate with Browserify...\r\nServerless: Bundling locationSendToClient with Browserify...\r\nServerless: Bundling locationCallback with Browserify...\r\nServerless: Bundling locationGetFull with Browserify...\r\nServerless: Bundling locationGetMetadata with Browserify...\r\nServerless: Bundling locationUpdate with Browserify...\r\nfs.js:922\r\n  return binding.mkdir(pathModule._makeLong(path),\r\n                 ^\r\n\r\nError: EEXIST: file already exists, mkdir '/var/folders/4w/_0f5wg2145z8vp3jbq56fzlm0000gn/T/locationCreate'\r\n  at Error (native)\r\n  at Object.fs.mkdirSync (fs.js:922:18)\r\n  at b.bundle (/Users/simonjentsch/Documents/.../.../node_modules/serverless-plugin-browserify/lib/bundle.js:39:12)\r\n  at /Users/simonjentsch/Documents/.../.../node_modules/browserify/index.js:779:13\r\n  at ConcatStream.<anonymous> (/Users/simonjentsch/Documents/.../.../node_modules/browserify/node_modules/concat-stream/index.js:36:43)\r\n  at emitNone (events.js:91:20)\r\n  at ConcatStream.emit (events.js:185:7)\r\n  at finishMaybe (/Users/simonjentsch/Documents/.../.../node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:475:14)\r\n  at endWritable (/Users/simonjentsch/Documents/.../.../node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:485:3)\r\n  at ConcatStream.Writable.end (/Users/simonjentsch/Documents/.../.../node_modules/browserify/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:455:41)\r\n  at Readable.onend (/Users/simonjentsch/Documents/.../.../node_modules/read-only-stream/node_modules/readable-stream/lib/_stream_readable.js:504:10)\r\n  at Readable.g (events.js:291:16)\r\n  at emitNone (events.js:86:13)\r\n  at Readable.emit (events.js:185:7)\r\n  at endReadableNT (/Users/simonjentsch/Documents/.../.../node_modules/read-only-stream/node_modules/readable-stream/lib/_stream_readable.js:926:12)\r\n  at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n  at process._tickDomainCallback (internal/process/next_tick.js:122:9)\r\n"}}
{"actor":{"display_login":"tchock"}}