构建离子应用程序时插件错误 [英] Plugin error while building ionic app

查看:424
本文介绍了构建离子应用程序时插件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建离子应用程序期间,显示以下错误:

during build ionic app, this error is shown:


从CLI插件执行命令时出错(@ ionic / cli-插件 - 科尔多瓦)。您的插件
可能已过期。
TypeError:env.runcmd不是函数

Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date. TypeError: env.runcmd is not a function


推荐答案

此错误消息指示Ionic CLI版本与其他CLI插件不兼容(请参阅 https://github.com/ ionic-team / ionic / issues / 12561

This error message indicates that the Ionic CLI version is incompatible with other CLI plugins (see https://github.com/ionic-team/ionic/issues/12561).

请在项目目录中运行以下命令(package.json所在的位置):

Please run the following commands in your project directory (where you package.json is):

npm i -g ionic@latest
npm i --save-dev --save-exact ionic@latest

这将在全球和本地安装最新的Ionic CLI版本(目前为3.7.0)。之后,错误不再发生。

This will install the latest Ionic CLI version (currently 3.7.0) globally and locally. After that the error should no longer occur.

这篇关于构建离子应用程序时插件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆