简体   繁体   English

Phonegap-无法使用CLI添加插件

[英]Phonegap - can't add plugin using CLI

When trying to add a plugin, I get the following error: 尝试添加插件时,出现以下错误:

   phonegap local plugin add https://git-wip-us.apache.org
    /repos/asf/cordova-plugin-device.git
    [phonegap] adding the plugin: https://git-wip-us.apache.org/repos/asf/cordova-pl
    ugin-device.git

    fs.js:427
      return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                     ^
    Error: ENOENT, no such file or directory 'C:\DOCUME~1\k\USTAWI~1\Temp\plugma
    n-tmp1379488251610\plugin.xml'
        at Object.fs.openSync (fs.js:427:18)
        at Object.fs.readFileSync (fs.js:284:15)
        at Object.module.exports.parseElementtreeSync (C:\Documents and Settings\k\Dane aplikacji\npm\node_modules\phonegap\node_modules\cordova\node_modules\pl
    ugman\src\util\xml-helpers.js:107:27)
        at C:\Documents and Settings\k\Dane aplikacji\npm\node_modules\phonegap\
    node_modules\cordova\node_modules\plugman\src\util\plugins.js:67:39
        at C:\Documents and Settings\k\Dane aplikacji\npm\node_modules\phonegap\
    node_modules\cordova\node_modules\shelljs\shell.js:1707:7
        at ChildProcess.exithandler (child_process.js:641:7)
        at ChildProcess.EventEmitter.emit (events.js:98:17)
        at maybeClose (child_process.js:735:16)
        at Process.ChildProcess._handle.onexit (child_process.js:802:5)

I tried to solve that problem using advice from here , but it does not change anything. 我尝试使用此处的建议来解决该问题,但它没有任何改变。

Will be really grateful for any suggestions how to solve that issue. 对于如何解决该问题的任何建议将非常感谢。

如果有人在Windows上的PhoneGap遇到类似的问题-安装最新的Git版本可以解决所有问题...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM