我正在尝试将cordova缩放插件集成到我的应用中。该插件位于:cordova-zoom-plugin
这是README file。
我尝试使用常规方法添加插件但失败了,CLI命令行是:
ionic cordova plugin add https://github.com/Biz4Solutions/cordova-zoomplugin.git
错误消息是:
dhcp-rhodes-2056:ionicApp aruhanliu$ cordova plugin add https://github.com/Biz4Solutions/cordova-zoomplugin
Error: Failed to fetch plugin https://github.com/Biz4Solutions/cordova-zoomplugin via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 254 Error output:
npm ERR! path /Users/aruhanliu/.npm/_cacache/tmp/git-clone-5a144746/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/aruhanliu/.npm/_cacache/tmp/git-clone-5a144746/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/aruhanliu/.npm/_logs/2017-12-01T19_00_53_654Z-debug.log
另一个问题是该插件需要捆绑Zoom sdk和Dropbox sdk,但我不知道该怎么做。