首頁  >  問答  >  主體

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 天前496

全部回覆(1)我來回復

  • P粉459578805

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

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

    回覆
    0
  • 取消回覆