【发布时间】:2017-02-03 09:40:31
【问题描述】:
Nativescript 2.5.0 版是否发生了重大变化?
由于我自己的错误造成的。由于疏忽,我不小心卸载了 Nativescript 并重新安装了它,将我的版本从 2.4.1(我相信)升级到了 2.5.0。在此过程中,我损坏了我的工作文件。
构建一个新的似乎工作正常,但 2.5.0 带来了足够的变化(可能是app/package.json 文件),我无法安装nativescript-plugin-firebase 插件。它就像在开始安装的图片中一样挂起,但没有典型的 console.log 信息。 See picture. 没有完成构建,无论是通过 nativescript CLI 安装还是通过将其设置为 root/package.json 文件中的依赖项。我注意到的一件事是 tns build android 也会将版本更新到 2.5.0。
我什至尝试将整个 package.json 文件设置为我之前使用的版本,并使用 tns update 设置 nativescript 版本。
有没有办法可以重新安装 Nativescript 2.4.1 作为我的主要安装?
插件本身似乎安装了所有东西,但没有安装脚本文件夹中的文件。他们也从不提示我创建firebase.nativescript.json 文件。
这是运行tns create [MYAPP] --ng后的当前package.json文件
根/package.json
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.[MYAPP]"
},
"dependencies": {
"@angular/common": "2.4.3",
"@angular/compiler": "2.4.3",
"@angular/core": "2.4.3",
"@angular/forms": "2.4.3",
"@angular/http": "2.4.3",
"@angular/platform-browser": "2.4.3",
"@angular/platform-browser-dynamic": "2.4.3",
"@angular/router": "3.4.3",
"nativescript-angular": "1.4.0",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.0.1",
"tns-core-modules": "^2.4.1"
},
"devDependencies": {
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "~0.3.5",
"typescript": "~2.1.0",
"zone.js": "~0.7.2"
}
}
还有 app/package.json 文件
{
"android": {
"v8Flags": "--expose_gc"
},
"main": "main.js",
"name": "tns-template-hello-world-ng",
"version": "2.5.0"
}
【问题讨论】:
标签: firebase version-control angular2-nativescript