Cypress: ENOTDIR Error when i launched cypress run

Created on 4 Dec 2018  路  6Comments  路  Source: cypress-io/cypress

Hello,

I have installed Cypress on Debian 9 (fresh install) with NPM.

When i launched cypress run, i get an error

Current behavior:

/opt/cypress/node_modules/.bin# ./cypress run

ENOTDIR: not a directory, mkdir '/opt/cypress/node_modules/.bin/cypress/plugins'
Error: ENOTDIR: not a directory, mkdir '/opt/cypress/node_modules/.bin/cypress/plugins'

Steps to reproduce:

cypress run

Versions

Cypress package version: 3.1.3
Cypress binary version: 3.1.3

Most helpful comment

I got the same issue. the mistake I was doing was running "./cypress open" command from the leaf folder. Resolution: run " ./node_modules/cypress/bin/cypress open" from project root folder.

All 6 comments

Hey @DcComicsansms Could you elaborate more on your project's file structure? What directory you were in when installing Cypress?

The node_modules are not typically within the cypress folder itself and usually within the project root.

Got the same error. But got it running with the following commands.

  1. removing cypress again via sudo rm -r *
  2. npm install cypress --save-dev
  3. ./node_modules/cypress/bin/cypress run

Unfortunately we have to close this issue as there is not enough information to reproduce the problem.

Please comment in this issue with a reproducible example and we will reopen the issue. 馃檹

I got the same issue. the mistake I was doing was running "./cypress open" command from the leaf folder. Resolution: run " ./node_modules/cypress/bin/cypress open" from project root folder.

I got the same issue. the mistake I was doing was running "./cypress open" command from the leaf folder. Resolution: run " ./node_modules/cypress/bin/cypress open" from project root folder.

Works for me!

I got the same issue. the mistake I was doing was running "./cypress open" command from the leaf folder. Resolution: run " ./node_modules/cypress/bin/cypress open" from project root folder.

It worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stormherz picture stormherz  路  3Comments

brian-mann picture brian-mann  路  3Comments

carloscheddar picture carloscheddar  路  3Comments

szabyg picture szabyg  路  3Comments

weskor picture weskor  路  3Comments