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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop cypress from downloading & unpacking every time #1363

Closed
tschaka1904 opened this issue Feb 22, 2018 · 5 comments
Closed

Stop cypress from downloading & unpacking every time #1363

tschaka1904 opened this issue Feb 22, 2018 · 5 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@tschaka1904
Copy link

tschaka1904 commented Feb 22, 2018

Is this a Feature or Bug?

Bug

Current behavior:

When I run npm install cypress everything works nicely 馃憤 But when I redo the command it is not picking up on the fact that it is already installed and unpacked, which can cost a lot of time.

Desired behavior:

Cypress not downloading and unpacking itself when there is already a cypress folder.

How to reproduce:

npm install cypress on an existing project where cypress is installed already.

@Konstruktour
Copy link

Recommendation: use yarn - dont have the problem there.

@tschaka1904 tschaka1904 changed the title Stop cypress from download & unpacking every time Stop cypress from downloading & unpacking every time Feb 23, 2018
@brian-mann brian-mann added the type: duplicate This issue or pull request already exists label Feb 23, 2018
@brian-mann
Copy link
Member

@tschaka1904 I don't think there's anything we can do about this. npm nukes the node_modules/cypress folder on reinstall which means it lost the binary.

We do have a proposal open for caching the binary outside of the node_modules folder which would prevent needing to re-download and unzip it if it's already been cached.

I'm closing this as a duplicate of #1300 and #1233.

@tschaka1904
Copy link
Author

tschaka1904 commented Feb 26, 2018

I've switched to yarn, which solved that issue. 馃憤

@brandonmp
Copy link

wanted to chime-in since I landed here trying to figure out why yarn was rebuilding cypress from scratch every time I ran yarn add x :/

though it looks like a fix for that should be landing in yarn soon

@mathiasrw
Copy link

Still having this issue even using yarn. yarnpkg/yarn#932 (comment) says

if a package deletes it's own files (why oh why do they do these things 馃樋) and yarn doesn't track that anywhere (we track what files are created or modified), so it just thinks the package is missing files and rebuilds it.

Could that be the key?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

5 participants