2014-05-23 21 views
21

phantomjs yüklenemedi. Hata, bitbucket'in bir sorunu olduğunu gösteriyor mu?Phantomjs yüklenemiyor - Bu bir bitbucket sorun mu?

$ sudo npm install -g phantomjs 
... 
> [email protected] install /usr/lib/node_modules/phantomjs 
> node install.js 

Looks like an `npm install -g`; unable to check for already installed version. 
Downloading http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 
Saving to /usr/lib/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2 
Receiving... 
Error requesting archive. 
Status: 403 
Request options: { 
    "protocol": "http:", 
    "slashes": true, 
    "auth": null, 
    "host": "cdn.bitbucket.org", 
    "port": null, 
    "hostname": "cdn.bitbucket.org", 
    "hash": null, 
    "search": null, 
    "query": null, 
    "pathname": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2", 
    "path": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2", 
    "href": "http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2" 
} 
Response headers: { 
    "content-type": "application/xml", 
    "transfer-encoding": "chunked", 
    "connection": "keep-alive", 
    "date": "Fri, 23 May 2014 13:29:01 GMT", 
    "server": "AmazonS3", 
    "x-cache": "Error from cloudfront", 
    "via": "1.1 73a3bce79e63d88b3a25c9ced0be16f5.cloudfront.net (CloudFront)", 
    "x-amz-cf-id": "V06j38N_5EE5K5vPU1uj8ADZ7451C7zTZ-rqsn785PFU-6Sxu-KfiQ==" 
} 
Make sure your network and proxy settings are correct. 
npm ERR! [email protected] install: `node install.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the phantomjs package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node install.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls phantomjs 
npm ERR! There is likely additional logging output above. 

npm ERR! System Linux 3.2.0-61-generic 
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "phantomjs" 
npm ERR! cwd /home/phil 
npm ERR! node -v v0.10.28 
npm ERR! npm -v 1.4.10 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/phil/npm-debug.log 
npm ERR! not ok code 0 

cevap

7

GÜNCELLEME: Bu düzeltildi, ancak phantomjs yükseltmek zorunda

Kaynak: https://github.com/Medium/phantomjs/issues/178

Bazı arka plan: Bu yükseltme etmedi çünkü MacOS yine aynı sorun koştu tüm package.json dosyaları.

  1. https://github.com/ariya/phantomjs (ana projesi)
  2. https://github.com/Medium/phantomjs (yükleme phantomjs için NPM sarıcı)

indirme sorunları için düzeltme ilgilidir:

Ayrıca iki phantomjs projeler olduğuna dikkat npm sarıcı.


(npm hata iletisi tarafından önerilen) Ben bakımcıya posta göndermek

$ wget http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 
2014-05-23 15:41:41 ERROR 403: Forbidden. 

(İşte benim asıl sonrası gelir). Şimdi, bence, sadece dışarı çıkmalıyız.

Güncelleme: github sorunu: Geçici bir çözüm https://github.com/ariya/phantomjs/issues/12260

19

geçici bir çözüm olarak çalışıyor gibi görünüyor.

PHANTOMJS_CDNURL=http://cnpmjs.org/downloads 
npm install phantomjs 
+0

Ev sahibi cnpmjs.org ile ilgili sorun yaşadım ancak http://phantomjs.org/download.html adresinden bağlanan zip dosyasını alabildik ve ana makine yerine – cordsen

+0

'u ekleyebildik. Bu hala değerli bir çözüm ve bana çok yardımcı oldu . Ancak, şimdi kabul edilen yanıt olarak güncellenmiş yanıtımı değiştirdim. Bunun nedeni, sorunun şu anda düzeltilmesidir, ancak phantomjs için NPM sarmalayıcısının eski bir sürümünü kullanırsanız, yine de buna katılabilirsiniz.Bu durumda, gerekiyorsa çözümünüze geri düşmeden önce ilk önce yükseltmek en iyisidir. –

+0

Benim için çalışmıyor. Http://cnpmjs.org/downloads/phantomjs-1.9.8-windows.zip adresindeki 407'yi aldım. – mcv

4

https://github.com/Medium/phantomjsbinasına bakın ve

güncelleştirme yükleme: önce birşey npm update

export PHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install phantomjs 
npm install -g phantomjs 

"npm phantomjs yükle" ihracat sonunda gereklidir denemek yapmak.

Belki bir daha hata alıyorum, çalıştırın, böylece npm update çalıştırın. karma start test/karma.conf.js

+0

Ubuntu 14.04 64 bit üzerinde çalışıyor. –

1

Bu sorunla karşılaştım ve npm'yi güncelleyerek çözdüm.

İlgili konular