Angular 15:错误发生意外错误:“无法找到要在 c:path\node_module 中链接的 webpack-dev-server 副本。我正在尝试使用纱线安装包依赖项,但出现上述错误。该项目前段时间安装和构建得很好,但是,最近它要求使用 webpack-dev-server,而我没有在其他 Angular 项目中明确配置它,想知道它的作用是什么以及为什么它现在问我。提前寻求帮助和意见。
包.json
{
"name": "@website",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"lint": "ng lint",
"lint:staged": "lint-staged",
"lint:styles": "./node_modules/.bin/stylelint src/**/*.scss --fix",
"e2e": "ng e2e",
"cypress:open": "cypress open",
"cypress:run": "cypress run",
"cypress:component": "cypress open --component",
"format": "yarn prettier --write .",
"prepare": "cd ../.. && husky install src/website-remote-iam/.husky"
},
"lint-staged": {
"*.{js, ts}": [
"eslint --quiet --fix"
],
"*.{json, md, …Run Code Online (Sandbox Code Playgroud)