@@ -71,28 +71,30 @@ the request of PhantomJS team.
71
71
Deciding Where To Get PhantomJS
72
72
-------------------------------
73
73
74
- By default, this package will download phantomjs from ` https://bitbucket.org/ariya /phantomjs/downloads ` .
74
+ By default, this package will download phantomjs from our [ releases ] ( https://github.com/Medium /phantomjs/releases/ ) .
75
75
This should work fine for most people.
76
76
77
77
##### Downloading from a custom URL
78
78
79
- If bitbucket is down, or the Great Firewall is blocking bitbucket, you may need to use
80
- a download mirror. To set a mirror, set npm config property ` phantomjs_cdnurl ` .
81
- Default is ``.
79
+ If github is down, or the Great Firewall is blocking github, you may need to use
80
+ a different download mirror. To set a mirror, set npm config property ` phantomjs_cdnurl ` .
82
81
83
- ``` shell
84
- npm install phantomjs-prebuilt --phantomjs_cdnurl=http://cnpmjs.org/downloads
82
+ Alternatives include ` https://bitbucket.org/ariya/phantomjs/downloads ` (the official download site)
83
+ and ` http://cnpmjs.org/downloads ` .
84
+
85
+ ``` Shell
86
+ npm install phantomjs-prebuilt --phantomjs_cdnurl=https://bitbucket.org/ariya/phantomjs/downloads
85
87
```
86
88
87
89
Or add property into your ` .npmrc ` file (https://www.npmjs.org/doc/files/npmrc.html )
88
90
89
91
```
90
- phantomjs_cdnurl=http ://cnpmjs .org/downloads
92
+ phantomjs_cdnurl=https ://bitbucket .org/ariya/phantomjs /downloads
91
93
```
92
94
93
95
Another option is to use PATH variable ` PHANTOMJS_CDNURL ` .
94
96
``` shell
95
- PHANTOMJS_CDNURL=http ://cnpmjs .org/downloads npm install phantomjs
97
+ PHANTOMJS_CDNURL=https ://bitbucket .org/ariya/phantomjs /downloads npm install phantomjs
96
98
```
97
99
98
100
##### Using PhantomJS from disk
@@ -175,9 +177,9 @@ was not able to download the PhantomJS binary for your platform. Please try agai
175
177
##### I tried again, but I get ` ECONNRESET ` or ` ETIMEDOUT ` consistently.
176
178
177
179
Do you live in China, or a country with an authoritarian government? We've seen problems where
178
- the GFW or local ISP blocks bitbucket , preventing the installer from downloading the binary.
180
+ the GFW or local ISP blocks github , preventing the installer from downloading the binary.
179
181
180
- Try visiting [ the download page] ( http ://cdn. bitbucket.org/ariya/phantomjs/downloads) manually.
182
+ Try visiting [ the download page] ( https ://bitbucket.org/ariya/phantomjs/downloads) manually.
181
183
If that page is blocked, you can try using a different CDN with the ` PHANTOMJS_CDNURL `
182
184
env variable described above.
183
185
0 commit comments