【发布时间】:2017-07-06 20:12:02
【问题描述】:
我在全球范围内安装了最新版本的 angular-cli。 版本如下。
C:\Users\W055013\kumar\learn\rx>ng --version
As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release,
which will only support Node 6.9 and greater. This package will be officially deprecated
shortly after.
To disable this warning use "ng set --global warnings.packageDeprecation=false".
_ _ _
__ _ _ __ __ _ _ _ | | __ _ _ __ ___ | |(_)
/ _` || '_ \ / _` || | | || | / _` || '__|_____ / __|| || |
| (_| || | | || (_| || |_| || || (_| || | |_____|| (__ | || |
\__,_||_| |_| \__, | \__,_||_| \__,_||_| \___||_||_|
|___/
angular-cli: 1.0.0-beta.28.3
node: 6.9.1
os: win32 x64
最近我开始尝试使用 ng2-ngrx-store。 所以我下载了一些示例应用程序。 当我尝试构建它们时,出现以下错误:
C:\Users\W055013\kumar\learn\rx\staffer\staffer-ng2-ngrxstore>ng build
As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release,
which will only support Node 6.9 and greater. This package will be officially deprecated
shortly after.
To disable this warning use "ng set --global warnings.packageDeprecation=false".
It seems like you're using a project generated using an old version of the Angular CLI.
The latest CLI now uses webpack and has a lot of improvements including a simpler
workflow, a faster build, and smaller bundles.
To get more info, including a step-by-step guide to upgrade the CLI, follow this link:
https://github.com/angular/angular-cli/wiki/Upgrading-from-Beta.10-to-Beta.14
一种解决方案是将示例应用程序迁移到最新版本的 angular-cli。但是我不想这样做,因为我只想学习 ng2-ngrxstore。
所以,我的问题是......我可以在本地安装较低版本的 angular-cli 以便我可以运行示例应用程序。如果是,如何?如果没有,我可以在某处获得带有新 angular-cli 版本的 ngrxstore 示例应用程序....
提前感谢您的帮助...
【问题讨论】:
标签: angular webpack angular-cli systemjs