在运行inappbrowser插件时,我得到了一个404的错误信息。
npm install @ionic-enterprise/inappbrowser
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ionic-enterprise%2finappbrowser - Not found
npm ERR! 404
npm ERR! 404 '@ionic-enterprise/inappbrowser@latest' is not in the npm registry.
我也运行了npm配置设置注册表。https:/registry.npmjs.org。 但仍然得到同样的错误
@ionic-enterprise/inappbrowser
是一个私人插件,你只能安装它,如果你是一个付费客户或在试用期。如果你是这些情况之一,请联系支持人员,他们可以帮助你配置你的机器从私有注册表安装包。
如果你使用cordova,这将做到这一点。ionic cordova plugin add cordova-plugin-inappbrowser --save