最近我将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"
}
}
我还删除了平台&amp;再次添加。但是,现在还没有运气。
答案 0 :(得分:3)
这是你的问题:
:unturned
echo (%time%) Unturned started.
cd masterserver
cd VisualStudio
cd Debug
masterserver.exe
@echo All done!
@echo Masterserver listening on port: 23466
echo (%time%) WARNING: Unturned closed or crashed, restarting. >>c:\crashlog.txt
ping 1.1.1.1 -n 1 -w 10000 >nul
goto unturned
必须让TNS / NativeScript-CLI,TNS-Common-Core和TNS-Platforms具有相同的版本。
输入: tns info ,以便轻松查看您的版本。
以下是升级步骤:
升级NativeScript命令行
"tns-android": {
"version": "2.1.1"
}
"tns-core-modules": "^2.0.0"
升级NativeScript Common Core库
npm install -g nativescript@latest
升级平台(用ios替换android for iOS)
npm install tns-core-modules@latest --save