我有一个旧版的Ionic应用程序,它是一段时间以前构建的,我想更新其中的一些内容并重置状态。我更新了Ionic CLI和Cordova,然后通过执行以下操作进行了状态重置:
sudo ionic state reset
每次这样做时,当尝试更新Ionic键盘插件时,都会收到相同的错误提示。如果在更新CLI之前进行状态重置,则不会出现此错误,但只有在更新后才会出现。已尝试手动添加和删除插件,但在使用cordova plugins list
时没有显示出来。任何帮助都将不胜感激。以下是错误信息:Removed platforms and plugins
Attempting to restore your Ionic application from package.json
Restoring Platforms
cordova platform add browser
cordova platform add ios
Restore platforms is complete
Restoring Plugins
cordova plugin add cordova-plugin-device
cordova plugin add cordova-plugin-console
cordova plugin add cordova-plugin-splashscreen
cordova plugin add com.ionic.keyboard
/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/lib/state.js:543
throw 'Error executing "' + pluginCommand + '":\n' + output;
^
Error executing "cordova plugin add com.ionic.keyboard":
Fetching plugin "com.ionic.keyboard" via npm
Error: Failed to fetch plugin com.ionic.keyboard via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: Registry returned 404 for GET on https://registry.npmjs.org/com.ionic.keyboard