英文:
getting problem starting serving new project Angular
问题
我创建了一个新的Angular项目并安装了包。当我启动项目时,服务器给我返回了模块构建失败的错误,如下图所示。
我尝试重新安装angular-cli和node,并终止了服务器上的所有项目,但仍然遇到相同的错误。此外,我在浏览器控制台中看到了HTTP 404错误,如下图所示。
我不知道问题出在哪里,因为这个项目是新创建的。希望有人能帮助我。
包的package.json的截图在下图中。
英文:
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.
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.
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.
答案1
得分: 0
问题已由Angular修复。删除node_modules并执行新的npm安装。
英文:
the issue is fixed by angular. delete node_modules and do a fresh npm install
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论