关于Error: Cannot find module '@nuxtjs/eslint-module和Error: No ESLint configuration found in D:\36解决办法

松安民
2023-12-01

1. 删除你的node_moudles目录,然后照着如下的我配置好的package.json(依赖部分)进行重新安装。(PS:NUXT.js(虽然好用)但自带的CLI真滴坑,各种不兼容)

{
  "dependencies": {
    "babel-preset-es2015": "^6.24.1",
    "cross-env": "^5.2.0",
    "element-ui": "^2.4.11",
    "koa": "^2.6.2",
    "nuxt": "^2.0.0",
    "@nuxtjs/axios": "^5.3.6",
    "@nuxtjs/bulma": "^1.2.1",
    "express": "^4.16.4",
    "node-sass": "^4.12.0",
    "sass-loader": "^7.1.0",
    "vue-focus": "^2.1.0"
  },
  "devDependencies": {
    "@nuxtjs/eslint-config": "^0.0.1",
    "@nuxtjs/eslint-module": "^0.0.1",
    "@vue/test-utils": "^1.0.0-beta.27",
    "babel-eslint": "^10.0.1",
    "babel-jest": "^24.1.0",
    "eslint": "^5.16.0",
    "eslint-config-prettier": "^4.1.0",
    "eslint-config-standard": ">=12.0.0",
    "eslint-loader": "^3.0.3",
    "eslint-plugin-import": ">=2.16.0",
    "eslint-plugin-jest": ">=22.3.0",
    "eslint-plugin-node": ">=8.0.1",
    "eslint-plugin-nuxt": ">=0.4.2",
    "eslint-plugin-prettier": "^3.0.1",
    "eslint-plugin-promise": ">=4.0.1",
    "eslint-plugin-standard": ">=4.0.0",
    "eslint-plugin-vue": "^5.2.2",
    "jest": "^24.1.0",
    "nodemon": "^1.18.9",
    "prettier": "^1.16.4",
    "vue-jest": "^4.0.0-0"
  }
}

2.参考:

https://github.com/nuxt/now-builder/issues/64

 类似资料: