getting problem starting serving new project Angular

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

getting problem starting serving new project Angular

问题

我创建了一个新的Angular项目并安装了包。当我启动项目时,服务器给我返回了模块构建失败的错误,如下图所示。

getting problem starting serving new project Angular

我尝试重新安装angular-cli和node,并终止了服务器上的所有项目,但仍然遇到相同的错误。此外,我在浏览器控制台中看到了HTTP 404错误,如下图所示。

getting problem starting serving new project Angular

我不知道问题出在哪里,因为这个项目是新创建的。希望有人能帮助我。

包的package.json的截图在下图中。

getting problem starting serving new project Angular

英文:

I create a new Angular project and install packages. When I serves the project, the server gives me module build failure as shown in the this image.

getting problem starting serving new project Angular

I try to re-install angular-cli and node, and then terminate all projects on the server but I still get the same error. In addition, I see a HTTP 404 error in the browser console, as shown in the following image.

getting problem starting serving new project Angular

I don't what the problem is, as the project is newly created. I hope someone can help me.

A screen capture of the package.json is in the next diagram.

getting problem starting serving new project Angular

答案1

得分: 0

问题已由Angular修复。删除node_modules并执行新的npm安装。

英文:

the issue is fixed by angular. delete node_modules and do a fresh npm install

huangapple
  • 本文由 发表于 2023年7月6日 18:43:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76627986.html
匿名

发表评论

匿名网友

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

确定