我正在尝试构建或服务我的Angular项目,但不断收到以下错误:
'发生未处理的异常:错误:没有此类文件或目录,lstat '\node_modules@fullcalendar\common'有关详细信息,请参阅“\AppData\Local\Temp\ng-gMA9kN\angular-errors.log”。
我尝试删除node_modules目录并再次运行npm install,但错误仍然存在。我在项目中使用FullCalendar包。有人能帮我解决这个问题吗?
版本
Angular CLI: 13.0.4
Node: 16.13.0
Package Manager: npm 8.16.0
OS: win32 x64
Angular: 13.0.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1303.10
@angular-devkit/build-angular 13.3.10
@angular-devkit/core 13.3.10
@angular-devkit/schematics 13.0.4
@angular/cdk 12.1.4
@angular/cli 13.0.4
@angular/google-maps 13.3.9
@angular/material 12.1.4
@angular/material-moment-adapter 12.1.4
@schematics/angular 13.0.4
rxjs 6.6.7
typescript 4.4.4
受抚养人
"dependencies": {
"@angular/animations": "13.0.3",
"@angular/cdk": "12.1.4",
"@angular/common": "13.0.3",
"@angular/compiler": "13.0.3",
"@angular/core": "13.0.3",
"@angular/forms": "13.0.3",
"@angular/google-maps": "^13.0.3",
"@angular/material": "12.1.4",
"@angular/material-moment-adapter": "12.1.4",
"@angular/platform-browser": "13.0.3",
"@angular/platform-browser-dynamic": "13.0.3",
"@angular/router": "13.0.3",
"@fullcalendar/angular": "^6.0.2",
"@fullcalendar/core": "^6.0.2",
"@fullcalendar/daygrid": "^6.0.2",
"@fullcalendar/interaction": "^6.0.2",
"@fullcalendar/list": "^6.0.2",
"@fullcalendar/moment": "^6.0.2",
"@fullcalendar/rrule": "^6.0.2",
"@fullcalendar/timegrid": "^6.0.2",
"@microsoft/signalr": "^5.0.11",
"@ngneat/transloco": "2.22.0",
"apexcharts": "^3.31.0",
"cookieconsent": "^3.1.1",
"crypto-js": "3.3.0",
"highlight.js": "11.1.0",
"lodash-es": "4.17.21",
"moment": "^2.29.1",
"ng-apexcharts": "1.7.1",
"ng-dynamic-component": "10.1.0",
"ngx-cookieconsent": "^2.2.3",
"ngx-markdown": "13.1.0",
"ngx-moment": "^5.0.0",
"ngx-quill": "16.2.1",
"oidc-client": "^1.11.5",
"perfect-scrollbar": "1.5.2",
"quill": "1.3.7",
"rrule": "2.6.8",
"rxjs": "6.6.7",
"tslib": "2.3.0",
"zone.js": "0.11.4"
},
2条答案
按热度按时间xqkwcwgp1#
阅读并理解错误信息。这意味着
node_modules/@fullcalendar/common
中没有文件或目录。如果你查看你的依赖项或node_modules文件夹,你不会找到任何具有该名称的文件。所以你仍然需要安装它。使用 npm,install-command看起来像这样:
npm i @fullcalendar/common
之后,你将能够建立或服务于你的Angular 项目。
套餐:@全日历/普通
8yparm6h2#
完整日历的软件包丢失,当您安装npm时,软件包没有下载。这可能是由于package.lock.json,
删除*节点模块 * 和 * 包.lock.json***,然后执行npm安装**