首页  >  问答  >  正文

npm init nuxt-app 结果出现问题“无法加载在‘.eslintrc.js » @nuxtjs/eslint-config’中声明的插件‘unicorn’”

我试图使用命令创建 Nuxt 应用程序

npm 初始化 nuxt-app

通过安装项目,会导致此错误

npm init nuxt-app 结果出现问题“无法加载在 '.eslintrc.js » @nuxtjs/eslint-config' 中声明的插件 'unicorn'”

构建项目时如下所示

下面是我坐的.eslintrc.js, 谁能帮我吗

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true,
  },
  parserOptions: {
    parser: '@babel/eslint-parser',
    requireConfigFile: false,
  },
  extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'prettier'],
  plugins: [],
  // add your custom rules here
  rules: {},
}

P粉706038741P粉706038741298 天前491

全部回复(1)我来回复

  • P粉459578805

    P粉4595788052023-12-27 00:51:47

    我刚刚使用了另一个版本的nodejs(16.0.0),一切都很好。

    回复
    0
  • 取消回复