Phonegap installation error (npm)

前端 未结 5 747
执笔经年
执笔经年 2020-12-07 00:52

I have been searching for a solution for two days now to setup Phonegap on my Windows 8.1 system without any success.

Whenever I try to install Phonegap through npm

5条回答
  •  借酒劲吻你
    2020-12-07 01:41

    Problem

    We published with a dependency on a branch of cordova-lib. This fork appears unavailable when lots of requests are coming through (I think). One way or another, it's unreliable. Changing the dependency to 0.21.3 will cause commands to fail, but will allow the install.

    Solutions

    1. update the 'cordova-lib' dependency to the npm published version '0.21.3' **note, this will allow the install, but other phonegap commands will fail

    2. wait for about 20 minutes, then npm update -g phonegap testing an update to resolve this issue

    further updates momentarily

    update We've pushed version 3.5.0-0.20.3 which should resolve this issue

    $ npm update -g phonegap
    

    if that doesn't work, try

    $ npm cache clean
    

    and reinstall phonegap

提交回复
热议问题