You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询当前安装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 the 6.x.x release line of nativescript-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:
    npm show nativescript-angular dependencies
    
    This will show you exactly which @angular/core version the package targets—you'll want to see a 6.x.x entry to confirm it's using Angular 6.
  • Avoid manual version mismatches: Steer clear of mixing older nativescript-angular versions 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 04:12:35