cordova 插件创建
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 | 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:\Users\peng\AppData\Roaming\npm\cordova -> C:\Users\peng\AppData\Roaming\npm\node_modules\cordova\bin\cordova - isarray@1.0.0 node_modules\cordova\node_modules\buffer\node_modules\isarray - semver@5.3.0 node_modules\cordova\node_modules\cordova-lib\node_modules\semver - q@1.5.0 node_modules\cordova\node_modules\cordova-serve\node_modules\q - string_decoder@1.0.3 node_modules\cordova\node_modules\readable-stream\node_modules\string_decoder C:\Users\peng\AppData\Roaming\npm `-- 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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \MyMath 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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_My_File______workM CodemyCodecordova-workspaceplugman-testMyMath' npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\npm-debug.log peng@PENG-PC /E/_My_File_____/_work/MyCode/myCode/cordova-workspace/plugman-test/ABCD $ npm install -g plugman C:\Users\peng\AppData\Roaming\npm\plugman -> C:\Users\peng\AppData\Roaming\npm\node_modules\plugman\main.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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \MyMath 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 --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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_My_File______workM CodemyCodecordova-workspaceplugman-testMyMath' npm ERR! enoent ENOENT: no such file or directory, open 'E:\_My_File_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\_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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\npm-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:\Users\peng\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9\gradle-3.3-all.zip to C:\Users\peng\.gradle\wrapper\dists\grad e-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9 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_____\_work\MyCode\myCode\cordova-workspace\plugman- test \ABCD\platforms\android\build.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 |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了