NativeScript生成失败。错误-实际参数列表和形式参数列表长度不同

NativeScript生成失败。错误-实际参数列表和形式参数列表长度不同,nativescript,angular2-nativescript,Nativescript,Angular2 Nativescript,最近,我将NativeScript CLI更新为2.1.0,并安装了Telerik UI插件。之后。我的应用程序构建失败,错误为实际参数列表和形式参数列表长度不同 截图- package.json { "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "readme": "NativeScript Application", "

最近,我将NativeScript CLI更新为2.1.0,并安装了Telerik UI插件。之后。我的应用程序构建失败,错误为实际参数列表和形式参数列表长度不同

截图-

package.json

{
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "readme": "NativeScript Application",
  "repository": "<fill-your-repository-here>",
  "nativescript": {
    "id": "org.nativescript.bhramaan",
    "tns-android": {
      "version": "2.1.1"
    }
  },
  "dependencies": {
    "@angular/common": "2.0.0-rc.1",
    "@angular/compiler": "2.0.0-rc.1",
    "@angular/core": "2.0.0-rc.1",
    "@angular/http": "2.0.0-rc.1",
    "@angular/platform-browser": "2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "2.0.0-rc.1",
    "@angular/platform-server": "2.0.0-rc.1",
    "@angular/router-deprecated": "2.0.0-rc.1",
    "nativescript-angular": "0.1.1",
    "nativescript-plugin-firebase": "^3.0.1",
    "tns-core-modules": "^2.0.0"
  },
  "devDependencies": {
    "babel-traverse": "6.9.0",
    "babel-types": "6.9.0",
    "babylon": "6.8.0",
    "filewalker": "0.1.2",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "^0.3.2",
    "typescript": "^1.8.10"
  }
}
我还删除了平台并再次添加。但是,现在仍然没有运气。

这是您的问题:

"tns-android": {
  "version": "2.1.1"
}
"tns-core-modules": "^2.0.0"
必须使TNS/NativeScript CLI、TNS Common Core和TNS平台具有相同的版本

键入:tns info以轻松查看您的版本

以下是升级步骤:

升级NativeScript命令行的步骤

npm install -g nativescript@latest
升级NativeScript公共核心库的步骤

npm install tns-core-modules@latest --save
要升级平台,请将android替换为ios for ios

tns platform remove android
tns platform add android
这是你的问题:

"tns-android": {
  "version": "2.1.1"
}
"tns-core-modules": "^2.0.0"
必须使TNS/NativeScript CLI、TNS Common Core和TNS平台具有相同的版本

键入:tns info以轻松查看您的版本

以下是升级步骤:

升级NativeScript命令行的步骤

npm install -g nativescript@latest
升级NativeScript公共核心库的步骤

npm install tns-core-modules@latest --save
要升级平台,请将android替换为ios for ios

tns platform remove android
tns platform add android

已经修好了。谢谢你的解决方案,已经修好了。谢谢你的解决方案。