ionic cli 3.2.0 error-TypeError:AppScripts.processProviderRequest不是函数

时间:2021-05-27 22:59:10

I'm trying to create login /signup using this tutorial. When I run ionic g provider authService I receive the error TypeError: AppScripts.processProviderRequest is not a function.

我正在尝试使用本教程创建登录/注册。当我运行ionic g provider authService时,我收到错误TypeError:AppScripts.processProviderRequest不是函数。

I have updated the node.js and my ionic-angular to the latest version but has not helped.

我已将node.js和my ionic-angular更新为最新版本,但没有帮助。

global packages: 
@ionic/cli-utils : 1.2.0 
Ionic CLI : 3.2.0 

local packages: 
@ionic/app-scripts : 1.1.4 
@ionic/cli-plugin-ionic-angular : 1.2.0 
Ionic Framework : ionic-angular 3.3.0 

System: 
Node : v6.10.3 
OS : Windows 10 
Xcode : not installed 
ios-deploy : not installed 
ios-sim : not installed 

Please Help!

请帮忙!

2 个解决方案

#1


2  

Yes, this worked for me by running the below script in the cmd

是的,通过在cmd中运行以下脚本,这对我有用

npm install @ionic/app-scripts@latest

Example: C:\Source\Examples\Ionic\NewWebApp\NewWebApp>npm install @ionic/app-scripts@latest

示例:C:\ Source \ Examples \ Ionic \ NewWebApp \ NewWebApp> npm install @ ionic / app-scripts @ latest

#2


2  

@ionic/app-scripts : 1.1.4

@ ionic / app-scripts:1.1.4

It looks like your app scripts is of an old version.

看起来您的应用脚本是旧版本。

Refer to the package.json in the starter app code to update it. This is the package from which the app is downloaded when you do ionic start command.

请参阅入门应用程序代码中的package.json以更新它。这是在执行离子启动命令时从中下载应用程序的程序包。

"@ionic/app-scripts": "1.3.7"

You can also verify any other dependency issues you may have from the starter app.

您还可以验证启动器应用程序中可能存在的任何其他依赖性问题。

#1


2  

Yes, this worked for me by running the below script in the cmd

是的,通过在cmd中运行以下脚本,这对我有用

npm install @ionic/app-scripts@latest

Example: C:\Source\Examples\Ionic\NewWebApp\NewWebApp>npm install @ionic/app-scripts@latest

示例:C:\ Source \ Examples \ Ionic \ NewWebApp \ NewWebApp> npm install @ ionic / app-scripts @ latest

#2


2  

@ionic/app-scripts : 1.1.4

@ ionic / app-scripts:1.1.4

It looks like your app scripts is of an old version.

看起来您的应用脚本是旧版本。

Refer to the package.json in the starter app code to update it. This is the package from which the app is downloaded when you do ionic start command.

请参阅入门应用程序代码中的package.json以更新它。这是在执行离子启动命令时从中下载应用程序的程序包。

"@ionic/app-scripts": "1.3.7"

You can also verify any other dependency issues you may have from the starter app.

您还可以验证启动器应用程序中可能存在的任何其他依赖性问题。