search

Home  >  Q&A  >  body text

npm init nuxt-app results in the problem "Cannot load plugin 'unicorn' declared in '.eslintrc.js » @nuxtjs/eslint-config'"

I'm trying to create a Nuxt application using the command

npm initialize nuxt-app

By installing the project, this error will occur

npm init nuxt-app results in a problem "Cannot load plugin 'unicorn' declared in '.eslintrc.js » @nuxtjs/eslint-config'"

When building the project it looks like this

The following is where I sit .eslintrc.js, Can anyone help me?

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粉706038741330 days ago532

reply all(1)I'll reply

  • P粉459578805

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

    I just used another version of nodejs (16.0.0) and everything was fine.

    reply
    0
  • Cancelreply