首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >找不到模块“更漂亮”

找不到模块“更漂亮”
EN

Stack Overflow用户
提问于 2019-09-28 11:30:51
回答 2查看 47.2K关注 0票数 29

我更新了所有包,但在运行npm运行服务后仍然收到此错误。

模块构建失败(来自./node_node/eslint-加载程序/index.js):错误:无法找到模块“更漂亮”时发生的链接/home

我的package.json

代码语言:javascript
代码运行次数:0
运行
复制
{
  "name": "app",
  "version": "0.1.0",
  "private": false,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },
  "dependencies": {
    "core-js": "^3.2.1",
    "firebase": "^7.0.0",
    "material-icons": "^0.3.1",
    "register-service-worker": "^1.6.2",
    "vue": "^2.6.10",
    "vue-flickity": "^1.2.1",
    "vue-router": "^3.1.3",
    "vuetify": "^2.0.19",
    "vuex": "^3.1.1"
  },
  "devDependencies": {
    "@mdi/font": "^4.4.95",
    "@vue/cli-plugin-babel": "^3.11.0",
    "@vue/cli-plugin-eslint": "^3.11.0",
    "@vue/cli-plugin-pwa": "^3.11.0",
    "@vue/cli-service": "^3.11.0",
    "@vue/eslint-config-prettier": "^5.0.0",
    "babel-eslint": "^10.0.3",
    "eslint": "^6.4.0",
    "eslint-plugin-vue": "^5.2.3",
    "material-design-icons-iconfont": "^5.0.1",
    "stylus": "^0.54.7",
    "stylus-loader": "^3.0.2",
    "uglifyjs-webpack-plugin": "^2.2.0",
    "vue-cli-plugin-vuetify": "^0.6.3",
    "vue-template-compiler": "^2.6.10",
    "vuetify-loader": "^1.3.0",
    "webpack": "^4.41.0",
    "webpack-cli": "^3.3.9"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/essential",
      "@vue/prettier"
    ],
    "rules": {
      "no-console": "off"
    },
    "parserOptions": {
      "parser": "babel-eslint"
    }
  },
  "postcss": {
    "plugins": {
      "autoprefixer": {}
    }
  },
  "browserslist": [
    "> 1%",
    "last 2 versions"
  ]
}

**"@vue/eslint-config-prettier": "^5.0.0",** is listed in the dependencies. How to fix this issue? (I'm using VSCODE on Ubuntu)

我多次尝试删除package-lock.jsonnode_modules,然后运行npm安装。没有什么能修复它--甚至在全球范围内更新所有的包。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-09-28 11:39:28

@vue/eslint-config-prettier的对等依赖项是漂亮的,因此需要将其添加到您自己的依赖项中:

代码语言:javascript
代码运行次数:0
运行
复制
npm install --save-dev prettier
票数 63
EN

Stack Overflow用户

发布于 2022-10-20 13:27:46

与NPM

代码语言:javascript
代码运行次数:0
运行
复制
npm install --save-dev prettier

配纱

代码语言:javascript
代码运行次数:0
运行
复制
yarn add --dev prettier
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58145870

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档