我试图使用命令创建 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: {},
} Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我刚刚使用了另一个版本的nodejs(16.0.0),一切都很好。