H:\ Ionic apps \ camera> ionic cordova插件添加cordova-plugin-camera
cordova插件添加cordova-plugin-camera --save ×运行命令 - 失败! [错误]运行cordova插件时发生错误添加cordova-plugin-camera --save(退出代码1):
Error: Failed to fetch plugin cordova-plugin-camera 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 ENOENT
H:\ Ionic apps \ camera> cordova插件列表
没有添加插件。使用cordova plugin add <plugin>
。
{}“
答案 0 :(得分:0)
您使用过离子cordova插件添加cordova-plugin-camera 改为使用它,不要在开始时添加离子
cordova plugin add cordova-plugin-camera
或
cordova plugin add https://github.com/apache/cordova-plugin-camera.git