我会在Ionic(Cordova + AngularJS)应用程序中使用StatusBar插件。
我尝试了cordova plugin add cordova-plugin-statusbar
on ng-cordova page和[github(https://github.com/apache/cordova-plugin-statusbar),但在我的cmd中出现了“错误:404 Not Found”。
这是错误:
Fetching plugin "cordova-plugin-statusbar" via plugin registry
npm http GET http://registry.cordova.io/cordova-plugin-statusbar
npm http 404 http://registry.cordova.io/cordova-plugin-statusbar
Error: 404 Not Found: cordova-plugin-statusbar
at RegClient.<anonymous> (C:\Users\Simone\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\npm-registry-client\lib\request.js:268:14)
at Request.self.callback (C:\Users\Simone\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:148:22)
at Request.emit (events.js:110:17)
at Request.<anonymous> (C:\Users\Simone\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:876:14)
at Request.emit (events.js:129:20)
at IncomingMessage.<anonymous> (C:\Users\Simone\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\npm\node_modules\request\index.js:827:12)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
这是我的问题吗?
答案 0 :(得分:4)
而不是cordova plugin add cordova-plugin-statusbar
尝试下面的命令行
cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git