Angular CLI ng 新错误 [英] Angular CLI ng new error
问题描述
我已经从 https://nodejs.org/en/download 安装了节点,然后我使用
I've installed node from https://nodejs.org/en/download and then I installed angular CLI via NPM using
npm install -g @angular/cli
完成后,我尝试创建一个新的 angular 项目
After it's done, I then try to create a new angular project
ng new new-project
我收到以下错误
Error: You provided an invalid object where a stream was expected.
You can provide an Observable, Promise, Array, or Iterable.
You provided an invalid object where a stream was expected.
You can provide an Observable, Promise, Array, or Iterable.
我尝试使用 sudo(和不使用)安装 cli,并且我已经重新安装了节点:我总是遇到相同的错误.
I've tried installing the cli using sudo (and without) and I've reinstalled node: I always get the same error.
我找不到任何有此问题的人的任何信息.
I can't find anything about anyone having this issue.
我使用的是 MacOS.
I'm using MacOS.
推荐答案
我按照步骤操作
- 更新节点,npm 最新版本
- 删除 angular-cli 1.6.3
- 安装 angular-cli 1.5
我可以创建应用程序、组件等
I could create application, component and others
1 月 12 日更新
我将 angular-cli 更新到 1.6.4,Node 更新到 9.4.0 并且对我来说可以很好地创建新项目
I update angular-cli up 1.6.4, Node up 9.4.0 and worked fine for me to create new project
这篇关于Angular CLI ng 新错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!