计划迁移到 cordova版本7.1.0。 但是正如我在您的 cordova-plugin-mfp-json存储中看到的那样,cordova-plugin-mfp,cordova-plugin-mfp-push 根据您支持的 package.json 仅在“> = 6.1.1 <7” 之间的Cordova版本,但在 plugin.xml 中显示“> = 6.1.1 <8” ,并在最新版本中显示“> = 6.1.1 <9” 。
那么它真的与我打算转换的Cordova版本兼容,还是您需要我呆在6系列中?
我们正在使用
"cordova-plugin-mfp": "8.0.2018031007",
"cordova-plugin-mfp-jsonstore": "8.0.2018021611",
"cordova-plugin-mfp-push": "8.0.2018030609"
出现以下错误
[windows] Failed to restore plugin "cordova-plugin-mfp-jsonstore" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-mfp-jsonstore@8.0.2018021611 via registry.
[windows] Probably this is either a connection problem, or plugin spec is incorrect.
[windows] Check your connection and plugin name/version/URL.
[windows] Error: cmd: Command failed with exit code 1 Error output:
[windows] npm ERR! Windows_NT 6.3.9600
[windows] npm ERR! argv "C:\\Program Files (x86)\\Jenkins\\tools\\jenkins.plugins.nodejs.tools.NodeJSInstallation\\nodejs6\\node.exe" "C:\\ws\\test\\FINGERTIP\\FingertipClient\\node_modules\\npm\\bin\\npm-cli.js" "install" "cordova-plugin-mfp-jsonstore@8.0.2018021611" "--production" "--no-save"
[windows] npm ERR! node v8.11.1
[windows] npm ERR! npm v2.15.12
[windows] npm ERR! code EPEERINVALID
[windows]
[windows] npm ERR! peerinvalid The package ajv@4.11.8 does not satisfy its siblings' peerDependencies requirements!
[windows] npm ERR! peerinvalid Peer ajv-keywords@2.1.1 wants ajv@^5.0.0
[windows]
[windows] npm ERR! Please include the following file with any support request:
[windows] npm ERR! C:\ws\test\FINGERTIP\FingertipClient\npm-debug.log
答案 0 :(得分:0)
请使用最新的cordova-plugin-mfp以获得对cordova 7.x cli的支持。为此,在添加插件时,请使用命令cordova plugin add cordova-plugin-mfp@latest