zoukankan      html  css  js  c++  java
  • cordova 插件创建

    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ npm install -g cordova
    npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
    C:UserspengAppDataRoaming
    pmcordova -> C:UserspengAppDataRoaming
    pm
    ode_modulescordovaincordova
    - isarray@1.0.0 node_modulescordova
    ode_modulesuffer
    ode_modulesisarray
    - semver@5.3.0 node_modulescordova
    ode_modulescordova-lib
    ode_modulessemver
    - q@1.5.0 node_modulescordova
    ode_modulescordova-serve
    ode_modulesq
    - string_decoder@1.0.3 node_modulescordova
    ode_modules
    eadable-stream
    ode_modulesstring_decoder
    C:UserspengAppDataRoaming
    pm
    `-- cordova@7.1.0
      +-- cordova-common@2.1.1
      | +-- bplist-parser@0.1.1
      | | `-- big-integer@1.6.25
      | `-- q@1.5.1
      +-- cordova-lib@7.1.0
      | +-- aliasify@2.1.0
      | | `-- browserify-transform-tools@1.7.0
      | |   `-- falafel@2.1.0
      | |     `-- acorn@5.2.1
      | +-- cordova-create@1.1.1
      | | +-- cordova-common@2.0.3
      | | | +-- q@1.5.1
      | | | `-- shelljs@0.5.3
      | | `-- cordova-fetch@1.1.0
      | |   +-- q@1.5.1
      | |   `-- shelljs@0.7.8
      | |     `-- glob@7.1.2
      | +-- cordova-fetch@1.2.0
      | | +-- q@1.5.1
      | | `-- shelljs@0.7.8
      | |   `-- interpret@1.0.4
      | +-- cordova-js@4.2.2
      | | `-- browserify@14.4.0
      | |   +-- buffer@5.0.8
      | |   +-- concat-stream@1.5.2
      | |   | `-- readable-stream@2.0.6
      | |   |   `-- string_decoder@0.10.31
      | |   +-- crypto-browserify@3.11.1
      | |   | +-- browserify-cipher@1.0.0
      | |   | | +-- browserify-aes@1.1.1
      | |   | | `-- evp_bytestokey@1.0.3
      | |   | +-- browserify-sign@4.0.4
      | |   | | `-- parse-asn1@5.1.0
      | |   | |   `-- asn1.js@4.9.2
      | |   | +-- diffie-hellman@5.0.2
      | |   | | `-- miller-rabin@4.0.1
      | |   | `-- pbkdf2@3.0.14
      | |   +-- https-browserify@1.0.0
      | |   +-- insert-module-globals@7.0.1
      | |   | `-- is-buffer@1.1.6
      | |   +-- resolve@1.5.0
      | |   +-- shasum@1.0.2
      | |   | `-- sha.js@2.4.9
      | |   `-- string_decoder@1.0.3
      | +-- cordova-serve@2.0.0
      | | +-- compression@1.7.1
      | | | +-- bytes@3.0.0
      | | | +-- compressible@2.0.12
      | | | +-- debug@2.6.9
      | | | `-- vary@1.1.2
      | | +-- express@4.16.2
      | | | +-- body-parser@1.18.2
      | | | | +-- http-errors@1.6.2
      | | | | | `-- setprototypeof@1.0.3
      | | | | +-- iconv-lite@0.4.19
      | | | | `-- raw-body@2.3.2
      | | | +-- content-type@1.0.4
      | | | +-- etag@1.8.1
      | | | +-- finalhandler@1.1.0
      | | | +-- fresh@0.5.2
      | | | +-- parseurl@1.3.2
      | | | +-- proxy-addr@2.0.2
      | | | | +-- forwarded@0.1.2
      | | | | `-- ipaddr.js@1.5.2
      | | | +-- qs@6.5.1
      | | | +-- send@0.16.1
      | | | | `-- mime@1.4.1
      | | | +-- serve-static@1.13.1
      | | | +-- setprototypeof@1.1.0
      | | | `-- utils-merge@1.0.1
      | | `-- open@0.0.5
      | +-- request@2.79.0
      | | `-- mime-types@2.1.17
      | |   `-- mime-db@1.30.0
      | `-- tar@2.2.1
      |   `-- fstream@1.0.11
      |     `-- rimraf@2.6.2
      +-- insight@0.8.2
      | `-- tough-cookie@2.3.3
      +-- nopt@3.0.1
      | `-- abbrev@1.1.1
      `-- update-notifier@0.5.0
        `-- latest-version@1.0.1
          `-- package-json@1.2.0
            `-- registry-url@3.1.0
              `-- rc@1.2.2
    
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ cordova -v
    7.1.0
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ cordova plugin add E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testMyMath
    Error: Failed to fetch plugin E:_My_File______workMyCodemyCodecordova-workspaceplugman-testMyMath via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: cmd: Command failed with exit code 4294963238 Error output:
    npm ERR! addLocal Could not install E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workMyCodemyCodecordova-wo
    kspaceplugman-testMyMath
    npm ERR! Windows_NT 6.1.7601
    npm ERR! argv "c:\_____Soft______\node\node.exe" "c:\_____Soft______\node\node_modules\npm\bin\npm-cli.js" "install" "E:_My_File______workMy
    odemyCodecordova-workspaceplugman-testMyMath" "--production" "--save"
    npm ERR! node v6.10.0
    npm ERR! npm  v3.10.10
    npm ERR! path E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workMyCodemyCodecordova-workspaceplugman-testMyM
    th
    npm ERR! code ENOENT
    npm ERR! errno -4058
    npm ERR! syscall open
    
    npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workM
    CodemyCodecordova-workspaceplugman-testMyMath'
    npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workM
    CodemyCodecordova-workspaceplugman-testMyMath'
    npm ERR! enoent This is most likely not a problem with npm itself
    npm ERR! enoent and is related to npm not being able to find a file.
    npm ERR! enoent
    $ cordova -v
    7.1.0RR! Please include the following file with any support request:
    npm ERR!     e:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD
    pm-debug.log
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ npm install -g plugman
    C:UserspengAppDataRoaming
    pmplugman -> C:UserspengAppDataRoaming
    pm
    ode_modulesplugmanmain.js
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ - plugman@1.5.1
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ ng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ plugman -v
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ ll
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ npm ERR! Windows_NT 6.1.7601
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ cordova plugin add E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testMyMath
    
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ cordova plugin add E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testMyMath --save
    Error: Failed to fetch plugin E:_My_File______workMyCodemyCodecordova-workspaceplugman-testMyMath via registry.
    Probably this is either a connection problem, or plugin spec is incorrect.
    Check your connection and plugin name/version/URL.
    Error: cmd: Command failed with exit code 4294963238 Error output:
    npm ERR! addLocal Could not install E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workMyCodemyCodecordova-wo
    kspaceplugman-testMyMath
    npm ERR! Windows_NT 6.1.7601
    npm ERR! argv "c:\_____Soft______\node\node.exe" "c:\_____Soft______\node\node_modules\npm\bin\npm-cli.js" "install" "E:_My_File______workMy
    odemyCodecordova-workspaceplugman-testMyMath" "--production" "--save"
    npm ERR! node v6.10.0
    npm ERR! npm  v3.10.10
    npm ERR! path E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workMyCodemyCodecordova-workspaceplugman-testMyM
    th
    npm ERR! code ENOENT
    npm ERR! errno -4058
    npm ERR! syscall open
    
    npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workM
    CodemyCodecordova-workspaceplugman-testMyMath'
    npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD\_My_File______workM
    CodemyCodecordova-workspaceplugman-testMyMath'
    npm ERR! enoent This is most likely not a problem with npm itself
    npm ERR! enoent and is related to npm not being able to find a file.
    npm ERR! enoent
    
    npm ERR! Please include the following file with any support request:
    npm ERR!     e:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCD
    pm-debug.log
    
    peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD
    $ cordova plugin add E:/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/MyMath
    Installing "SimpleMath" for android
    ANDROID_HOME=C:\_____Soft______Androidsdk
    JAVA_HOME=C:\_____Soft______java
    Subproject Path: CordovaLib
    Downloading https://services.gradle.org/distributions/gradle-3.3-all.zip
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................................................................................................
    .....................................................................
    Unzipping C:Userspeng.gradlewrapperdistsgradle-3.3-all55gk2rcmfc6p2dg9u9ohc3hw9gradle-3.3-all.zip to C:Userspeng.gradlewrapperdistsgrad
    e-3.3-all55gk2rcmfc6p2dg9u9ohc3hw9
    Starting a Gradle Daemon (subsequent builds will be faster)
    > Configuring > 0/2 projects > root project > Resolving dependencies ':classpath'
    > Configuring > 0/2 projects > root project
    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
            at build_gnb9f5t9x4x9dp6xto4xghds.run(E:\_My_File_____\_workMyCodemyCodecordova-workspaceplugman-testABCDplatformsandroiduild.gradle
    137)
    > Configuring > 1/2 projects > Resolving dependencies ':_debugApk' > :CordovaLib > Resolving dependencies ':CordovaLib:classpath'
    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmp
    y() instead.
    :clean
    :CordovaLib:clean
    
    BUILD SUCCESSFUL
    
    Total time: 14 mins 50.655 secs
    Adding SimpleMath to package.json
    Saved plugin info for "SimpleMath" to config.xml
    
  • 相关阅读:
    SSM项目使用GoEasy 实现web消息推送服务
    Spring中RedirectAttributes的用法
    Mybatis传递多个参数
    Mysql异常之——Packet for query is too large (10240 > 1024). You can change this value
    记自己在mybatis中设置jdbcType的一个坑
    Linux中各个目录作用
    Linux启动/停止/重启Mysql数据库
    ssm项目跨域访问
    Mybatis异常之——NoSuchMethodException
    Tomcat异常之——启动报错Failed to start component
  • 原文地址:https://www.cnblogs.com/Amos-Turing/p/7774730.html
Copyright © 2011-2022 走看看