创建新的Angular项目时停在/.gitkeep。

huangapple go评论63阅读模式
英文:

create new angular project stoped on /.gitkeep

问题

我尝试用 ng new 命令创建新的 Angular 项目,进程启动并等待于

> CREATE crm_ng/src/assets/.gitkeep (0 字节)
>
> Installing packages (npm) ...

我再次卸载 angular cli,清除缓存,然后重新安装 angular/cli。尝试使用 ng new 创建新的 Angular 项目,但进程停在上述行,

我使用

> Angular CLI: 16.0.1
>
> Node: 20.1.0 (不支持)
>
> Package Manager: npm 9.6.6
>
> 操作系统: linux x64

当我使用代理时,我遇到相同的问题,而当我禁用代理并运行以下命令时

> npm config rm proxy
>
> npm config rm https-proxy

问题仍然存在。我该如何解决?

英文:

I try to create new angular project with ng new command,
process started and waited on

> CREATE crm_ng/src/assets/.gitkeep (0 bytes)
>
> Installing packages (npm) ...

I uninstalled angular cli again, cleaned cache and Install angular/cli again.
Try to create new agnular project with ng new but process stop on the above line,
I use

> Angular CLI: 16.0.1
>
> Node: 20.1.0 (Unsupported)
>
> Package Manager: npm 9.6.6
>
> OS: linux x64

Also when I use Proxy I have the same problem and when I disabled proxy and run this command

> npm config rm proxy
>
> npm config rm https-proxy
My problem exist.

How can I resolve that?

答案1

得分: 1

Angular目前还不支持Node 20。

英文:

Angular doesn't support Node 20 yet.

huangapple
  • 本文由 发表于 2023年5月13日 22:55:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76243352.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定