DeepSourceCorp/good-first-issue

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_`

error

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

Hello,

here is an update:
I've updated my Node version to v21.6.0. Now, the bun installation works fine.

buninstall

Start the bun dev works, too.

terminalbundev

And I can open the localhost, now.

localhost

Maybe, the version was the problem...