Inoent:可以通过NG构建和NG服务来生成Dist文件夹

发布于 2025-01-21 22:46:41 字数 887 浏览 0 评论 0原文

当我运行Angular命令ng构建ng服务时,我会收到以下错误,并且未生成DIST文件夹:

发生了一个未经治疗的例外:enoent:没有这样的文件或目录,lstat'C:\ users \ khins \ desktop \ ecommerceangular \ ecommerceangular \ ecommerce \ ecommerce \ dist' 有关更多详细信息

角CLI:13.3.3 节点:14.17.6 软件包管理器:NPM 6.14.15 操作系统:win32 x64

angular.json:

   "options": {
            "outputPath": "dist/Ecommerce",
            "index": "src/index.html",

package.json:

    "@angular/forms": "~13.3.0",
    "@angular/platform-browser": "~13.3.0",
    "@angular/platform-browser-dynamic": "~13.3.0",
    "@angular/router": "~13.3.0",
    "@fortawesome/fontawesome-free": "^6.1.1",
    "bootstrap": "^5.1.3",
    "ngx-bootstrap": "^8.0.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"

我添加了ngx-bootstrap 8.0.0.0

When I run the angular commands ng build or ng serve, I get the following error and the dist folder is not generated:

An unhandled exception occurred: ENOENT: no such file or directory, lstat 'C:\Users\khins\Desktop\EcommerceAngular\Ecommerce\dist'
See "C:\Users\khins\AppData\Local\Temp\ng-MzMpV6\angular-errors.log" for further details.

Angular CLI: 13.3.3
Node: 14.17.6
Package Manager: npm 6.14.15
OS: win32 x64

angular.json:

   "options": {
            "outputPath": "dist/Ecommerce",
            "index": "src/index.html",

package.json:

    "@angular/forms": "~13.3.0",
    "@angular/platform-browser": "~13.3.0",
    "@angular/platform-browser-dynamic": "~13.3.0",
    "@angular/router": "~13.3.0",
    "@fortawesome/fontawesome-free": "^6.1.1",
    "bootstrap": "^5.1.3",
    "ngx-bootstrap": "^8.0.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"

I added ngx-bootstrap 8.0.0.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文