node-gfx / node-canvas-prebuilt

Repo used to build binaries for node-canvas on CI
170 stars 31 forks source link

How to set mirror address when installing this package #120

Closed littlee closed 4 years ago

littlee commented 4 years ago

In my country, downloading file from github is slowwww, how do I use a mirror when installing this package ?

the mirror I would use:

https://npm.taobao.org/mirrors/canvas-prebuilt/

chearon commented 4 years ago

Use npm install canvas --canvas_binary_host_mirror=url to pick a mirror. It doesn't look like your link has the latest versions though.

littlee commented 4 years ago

cool

niksw7 commented 3 years ago

Can you suggest how to do it for yarn2