gucong3000 / mirror-config-china

Mirrors in China about node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for cypress?

Stupidism opened this issue · comments

No description provided.

Cypress defines their mirror site to resolve install package by query param, pattern:

https://<mirror-site>/desktop/<version>?platform=<platform>&arch=<arch>

But taobao cypress mirror is stored in a folder-based pattern:

https://npm.taobao.org/mirrors/cypress/<version>/<platform>-<arch>/cypress.zip

So there should be an url rewrite/convert rule to make taobao npm work. Currently, I've built a local web service to do the url conversion and set the CYPRESS_DOWNLOAD_MIRROR to it.

I don't think by generating a .npmrc file can solve this problem. But it is okay if all the team members are using the same OS.