Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress first time launch on windows 10 gives an error #2946

Closed
Janzelf opened this issue Dec 14, 2018 · 3 comments
Closed

Cypress first time launch on windows 10 gives an error #2946

Janzelf opened this issue Dec 14, 2018 · 3 comments

Comments

@Janzelf
Copy link

Janzelf commented Dec 14, 2018

cypress gives an error but appears to continue after some time

Current behavior:

Launching with npx cypress open gives following error:

Error: EPERM: operation not permitted, mkdir 'C:\Users\Jan'
TypeError: Cannot read property 'get' of undefined
    at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
    at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:83:20
    at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:224:22)
    at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:262:24
    at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:81:7
    at Array.forEach (<anonymous>)
    at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:80:13
    at f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
    at afterExtras (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:178:20)
    at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:47:53
    at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
    at FSReqWrap.oncomplete (fs.js:152:21)
C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205
  if (npm.config.get('json')) {
                 ^

TypeError: Cannot read property 'get' of undefined
    at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
    at emitOne (events.js:116:13)
    at process.emit (events.js:211:7)
    at process._fatalException (bootstrap_node.js:374:26)
Install for prefix@latest failed with code 7

Cypress apparently fails to create a first time config file

Desired behavior:

The environment variable %userprofile% contains spaces C:\Users\Jan de lint
This should be put in quotes in windows scripts:

Could I try and create the config by hand so that this error is bypassed?
Removing the blanks from the windows home directory name requires a new windows installation

Versions

Latest versions of windows 10 (1809) 64 bits, npm and cypress

@Janzelf
Copy link
Author

Janzelf commented Dec 22, 2018

Every time I start cypress, I get this error. Takes time, however testing seems to continue

@jennifer-shehane
Copy link
Member

Hey @Janzelf, thanks for the detailed issue, this helps us quite a bit in getting started to fix it.

@jennifer-shehane
Copy link
Member

Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen.

@jennifer-shehane jennifer-shehane removed the stage: ready for work The issue is reproducible and in scope label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants