Inoent:可以通过NG构建和NG服务来生成Dist文件夹
当我运行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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论