打开nuxt.config.js,看看是不是没有在顶部加上以下代码! // eslint-disable-next-line nuxt/no-cjs-in-config const path = require('path')