咨询当前安装NativeScript所使用的Angular版本
NativeScript & Angular 6 Version Compatibility
Hey there! Awesome to hear you're diving into NativeScript with your Angular hobby skills—great choice! Let me clear up the version question for you:
When Angular 6 was first released, the NativeScript team moved quickly to support it. Here's what you need to know:
- Out-of-the-box compatibility: If you install the latest NativeScript CLI and create a new Angular-powered project, it will automatically set you up with a version of
nativescript-angular(the official integration package) that fully supports Angular 6. Look for the6.x.xrelease line ofnativescript-angular—these are built to work seamlessly with Angular 6's core packages like@angular/core@6.x.x,@angular/common@6.x.x, etc. - Verify before installing: If you want to double-check ahead of time, you can run this command in your terminal to see the latest available version of the NativeScript Angular package and its dependencies:
This will show you exactly whichnpm show nativescript-angular dependencies@angular/coreversion the package targets—you'll want to see a6.x.xentry to confirm it's using Angular 6. - Avoid manual version mismatches: Steer clear of mixing older
nativescript-angularversions with Angular 6, as that can cause build errors or runtime issues. Let the CLI handle the setup, and you'll be good to go with the compatible Angular 6 stack.
No need to worry about being stuck on an older Angular version if you install NativeScript post-Angular 6's release—they had the support ready shortly after Google launched the update.
内容的提问来源于stack exchange,提问作者Sulaiman Triarjo
相关产品推荐
相关产品推荐

