{"action":"created","issue":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/1099","repository_url":"https://api.github.com/repos/cypress-io/cypress","labels_url":"https://api.github.com/repos/cypress-io/cypress/issues/1099/labels{/name}","comments_url":"https://api.github.com/repos/cypress-io/cypress/issues/1099/comments","events_url":"https://api.github.com/repos/cypress-io/cypress/issues/1099/events","html_url":"https://github.com/cypress-io/cypress/issues/1099","id":283430732,"number":1099,"title":"EEXIST: file already exists - cannot start server on Windows","user":{"login":"aaronherman","id":12768929,"avatar_url":"https://avatars1.githubusercontent.com/u/12768929?v=4","gravatar_id":"","url":"https://api.github.com/users/aaronherman","html_url":"https://github.com/aaronherman","followers_url":"https://api.github.com/users/aaronherman/followers","following_url":"https://api.github.com/users/aaronherman/following{/other_user}","gists_url":"https://api.github.com/users/aaronherman/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronherman/subscriptions","organizations_url":"https://api.github.com/users/aaronherman/orgs","repos_url":"https://api.github.com/users/aaronherman/repos","events_url":"https://api.github.com/users/aaronherman/events{/privacy}","received_events_url":"https://api.github.com/users/aaronherman/received_events","type":"User","site_admin":false},"labels":[{"id":265224200,"url":"https://api.github.com/repos/cypress-io/cypress/labels/OS:%20windows","name":"OS: windows","color":"d4c5f9","default":false},{"id":702394648,"url":"https://api.github.com/repos/cypress-io/cypress/labels/pkg/server","name":"pkg/server","color":"c5def5","default":false},{"id":393988405,"url":"https://api.github.com/repos/cypress-io/cypress/labels/stage:%20needs%20information","name":"stage: needs information","color":"ffdf7f","default":false},{"id":182981366,"url":"https://api.github.com/repos/cypress-io/cypress/labels/type:%20bug","name":"type: bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-12-20T02:32:11Z","updated_at":"2018-02-15T09:22:05Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n- Operating System: Windows 7 & 10\r\n- Cypress Version: 1.0.3 & 1.3.0\r\n- Browser Version: Chrome 63\r\n\r\n### Is this a Feature or Bug?\r\nBug\r\n\r\n\r\n### Current behavior:\r\nWhen installing and running Cypress on Windows, I get the following error: \"Error: EEXIST: file already exists, mkdir 'C:\\Users\\aaron\\Roaming\\node_modules\\.bin\\cypress\". This has been duplicated on both Windows 7 and Windows 10.\r\n\r\nBelow is the debug output. \r\n\r\n\r\n```\r\n\r\nWed, 20 Dec 2017 02:09:32 GMT cypress:ts Running without ts-node hook in environment \"production\"\r\nWed, 20 Dec 2017 02:09:33 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\r\nWed, 20 Dec 2017 02:09:33 GMT cypress:server starting cypress server\r\nWed, 20 Dec 2017 02:09:33 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\r\nWed, 20 Dec 2017 02:09:37 GMT cypress:server start in mode headed with options {\"_\":[\"C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\cypress\\\\dist\\\\Cypress\\\\Cypress.exe\"],\"project\":\"C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\",\"projectPath\":\"C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\"}\r\nWed, 20 Dec 2017 02:09:43 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\browsers\r\nWed, 20 Dec 2017 02:09:44 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\cache\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:timers queuing timer id 1 after 500 ms\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:timers child received timer id 1\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:timers child sending timer id 1\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:timers clearing timer id 1 from queue { '1': { args: [], ms: 500, cb: [Function] } }\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server making saved state from C:\\Users\\aaron\\tmp\\node_modules\\cypress\\dist\\Cypress\\resources\\app\\packages\\server\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server for project path C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server state path for project C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server full state path C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server making new state file around C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:file reading JSON file C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:00 GMT cypress:server:windows creating electron window with options { backgroundColor: '#dfe2e4', width: 800, height: 550, minWidth: 458, minHeight: 400, x: null, y: null, type: 'INDEX', devTools: false, trackState: { width: 'appWidth', height: 'appHeight', x: 'appX', y: 'appY', devTools: 'isAppDevToolsOpen' }, onBlur: [Function: onBlur], onFocus: [Function: onFocus], onClose: [Function: onClose], show: true, url: 'file://C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\cypress\\\\dist\\\\Cypress\\\\resources\\\\app\\\\packages\\\\desktop-gui\\\\dist\\\\index.html', webPreferences: { preload: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\cypress\\\\dist\\\\Cypress\\\\resources\\\\app\\\\packages\\\\server\\\\lib\\\\ipc\\\\ipc.js', chromeWebSecurity: true, nodeIntegration: false, backgroundThrottling: false, backgroundColor: '#dfe2e4' }, frame: true, contextMenu: false, recordFrameRate: null, onPaint: null, onCrashed: [Function: onCrashed], onNewWindow: [Function: onNewWindow] }\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:menu:clicked undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: get:options undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events sending ipc data { type: 'get:options',\r\n  data: \r\n   { id: 0.6289514760541144,\r\n     data: \r\n      { _: [Object],\r\n        project: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin',\r\n        projectPath: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin',\r\n        onFocusTests: [Function: onFocusTests],\r\n        os: 'win32',\r\n        version: '1.4.0' } } }\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: get:current:user undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:file reading JSON file C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\cache\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events sending ipc data { type: 'get:current:user',\r\n  data: { id: 0.3762137311755782, data: {} } }\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:focus:tests undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:spec:changed undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:config:changed undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:project:error undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: on:project:warning undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: open:project C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:project Project created C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events got request for event: updater:check undefined\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:updater checking for new version of Cypress. current version is 1.4.0\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher checking one browser chrome\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher looking up chrome on win32 platform\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher exe path C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher found C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe ? true\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher Version=63.0.3239.84\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher browser chrome at 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' version 63.0.3239.84\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher setting major version for {\"name\":\"chrome\",\"displayName\":\"Chrome\",\"version\":\"63.0.3239.84\",\"path\":\"C:\\\\Program Files (x86)\\\\Google\\\\Chrome\\\\Application\\\\chrome.exe\"}\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher browser chrome version 63.0.3239.84 major version 63\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher checking one browser chromium\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher looking up chromium on win32 platform\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher exe path C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher found C:\\Program Files (x86)\\Google\\chrome-win32\\chrome.exe ? false\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher browser chromium not installed\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher checking one browser canary\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher looking up canary on win32 platform\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher exe path C:\\Users\\aaron\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher found C:\\Users\\aaron\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe ? false\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:launcher browser canary not installed\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server opening project C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:project opening project instance C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config setting support file C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\support\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config for project root C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config support file C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\support does not exist\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config support file is default, check if C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress exists\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config support folder does not exist, set to default index.js\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config set support folder C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\support\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config setting plugins file C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\plugins\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config for project root C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config plugins file does not exist\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config plugins file is default, check if C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress exists\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:config plugins folder does not exist, set to default index.js\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold scaffolded files [\"cypress\\\\integration\\\\example_spec.js\",\"cypress\\\\fixtures\\\\example.json\",\"cypress\\\\support\\\\commands.js\",\"cypress\\\\support\\\\index.js\",\"cypress\\\\plugins\\\\index.js\"]\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server making saved state from C:\\Users\\aaron\\tmp\\node_modules\\cypress\\dist\\Cypress\\resources\\app\\packages\\server\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server for project path C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server state path for project C:\\Users\\aaron\\tmp\\node_modules\\.bin\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:appdata path: C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server full state path C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:file reading JSON file C:\\Users\\aaron\\AppData\\tmp\\Cypress\\cy\\production\\projects\\.bin-51b4388fba0de7ac28bff8df9045a210\\state.json\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold found 0 files in folder C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\integration\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold untouched scaffold true modal closed false\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold plugins folder C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\plugins\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold verify scaffolding in C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\plugins\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold missing folder C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\plugins\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold copying index.js into C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress\\plugins\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:scaffold scaffolded files [\"cypress\\\\integration\\\\example_spec.js\",\"cypress\\\\fixtures\\\\example.json\",\"cypress\\\\support\\\\commands.js\",\"cypress\\\\support\\\\index.js\",\"cypress\\\\plugins\\\\index.js\"]\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events send error: { Error: EEXIST: file already exists, mkdir 'C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress'\r\n    at Error (native)\r\n\r\n  cause: \r\n   { Error: EEXIST: file already exists, mkdir 'C:\\Users\\aaron\\tmp\\node_modules\\.bin\\cypress'\r\n       at Error (native)\r\n   \r\n     errno: -4075,\r\n     code: 'EEXIST',\r\n     syscall: 'mkdir',\r\n     path: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\\\\cypress' },\r\n  isOperational: true,\r\n  errno: -4075,\r\n  code: 'EEXIST',\r\n  syscall: 'mkdir',\r\n  path: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\\\\cypress' }\r\nWed, 20 Dec 2017 02:10:02 GMT cypress:server:events sending ipc data { type: 'open:project',\r\n  data: \r\n   { id: 0.4466535685737474,\r\n     __error: \r\n      { name: 'Error',\r\n        stack: 'Error: EEXIST: file already exists, mkdir \\'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\\\\cypress\\'\\n    at Error (native)\\n',\r\n        message: 'EEXIST: file already exists, mkdir \\'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\\\\cypress\\'',\r\n        cause: [Object],\r\n        isOperational: true,\r\n        errno: -4075,\r\n        code: 'EEXIST',\r\n        syscall: 'mkdir',\r\n        path: 'C:\\\\Users\\\\aaron\\\\tmp\\\\node_modules\\\\.bin\\\\cypress' } } }\r\nWed, 20 Dec 2017 02:10:03 GMT cypress:server:updater latest version of Cypress is: 1.4.0\r\nWed, 20 Dec 2017 02:10:03 GMT cypress:server:updater new version of Cypress does not exist\r\nWed, 20 Dec 2017 02:10:03 GMT cypress:server:events sending ipc data { type: 'updater:check',\r\n  data: { id: 0.786888422730067, data: false } }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cypress-io/cypress/issues/comments/365868891","html_url":"https://github.com/cypress-io/cypress/issues/1099#issuecomment-365868891","issue_url":"https://api.github.com/repos/cypress-io/cypress/issues/1099","id":365868891,"user":{"login":"kolasv","id":25507899,"avatar_url":"https://avatars2.githubusercontent.com/u/25507899?v=4","gravatar_id":"","url":"https://api.github.com/users/kolasv","html_url":"https://github.com/kolasv","followers_url":"https://api.github.com/users/kolasv/followers","following_url":"https://api.github.com/users/kolasv/following{/other_user}","gists_url":"https://api.github.com/users/kolasv/gists{/gist_id}","starred_url":"https://api.github.com/users/kolasv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kolasv/subscriptions","organizations_url":"https://api.github.com/users/kolasv/orgs","repos_url":"https://api.github.com/users/kolasv/repos","events_url":"https://api.github.com/users/kolasv/events{/privacy}","received_events_url":"https://api.github.com/users/kolasv/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T09:22:05Z","updated_at":"2018-02-15T09:22:05Z","author_association":"NONE","body":"I have the same problem with steps above.\r\nFortunately, I run cypress.\r\nI've created script inside package.json:\r\n```\r\n{\r\n  \"scripts\": {\r\n    \"test\": \"cypress open\"\r\n  }\r\n}\r\n```\r\n\r\nRun command:\r\n`npm run test`\r\n\r\nAll works fine for me"}}
{"actor":{"display_login":"kolasv"}}