gpt4 book ai didi

linux - Angular-CLI 在构建时卡住

转载 作者:太空狗 更新时间:2023-10-29 12:41:17 24 4
gpt4 key购买 nike

我转移到 angular-cli 并在生产部署期间遇到问题。在装有 win10 的本地 PC 上一切正常,但是当我尝试在 centos 服务器上构建时,构建卡住在 10%。

操作系统:CentOS 6.6

ng - v:

@angular/cli: 1.0.0
node: 6.10.1
os: linux x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1

然后:

cd ~
ng new ngtest
cd ngtest
ng build

我在 15 分钟内完成了这个,没有任何更改。

 10% building modules 3/3 modules 0 active

Htop 显示 0% 的处理器。控制台对 Ctrl+C 没有反应。只有来自其他终端的 kill -9 才能阻止它。

有人可以告诉我我的确认有什么问题吗?谢谢!

最佳答案

  1. 尝试重新安装@angular/cli
  2. 尝试重新安装nodejs和npm
  3. 尝试用 yum update 更新所有软件
  4. 尝试重启服务器

关于linux - Angular-CLI 在构建时卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43192318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com