error: postinstall script from "nuxt-app" exited with 1
Closed this issue · 3 comments
Hello,
I wanted to install the app via bun, and I've got the following error:
`_bun install v1.0.21 (837cbd60)
⚙️ nuxt-app [5/5] [nuxt:tailwindcss] ℹ Using default Tailwind CSS file
ERROR Named export 'execa' not found. The requested module 'execa' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'execa';
const { execa } = pkg;
import { execa } from 'execa';
^^^^^
SyntaxError: Named export 'execa' not found. The requested module 'execa' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'execa';
const { execa } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
ERROR Named export 'execa' not found. The requested module 'execa' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'execa';
const { execa } = pkg;
error: postinstall script from "nuxt-app" exited with 1_`
Can anyone help me? Thanks in advance.
@jonasermert What's the node version you're using?
@jonasermert What's the node version you're using?
v18.16.1