小编DPa*_*tel的帖子

Angular 15:错误发生意外错误:“无法找到要链接到 c:path\\node_module 的 webpack-dev-server 副本

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)

webpack package.json webpack-dev-server angular-cli angular

5
推荐指数
0
解决办法
399
查看次数