nuxt-modules / storybook

Storybook integration with Nuxt.
https://storybook.nuxtjs.org
410 stars 95 forks source link

Error when run npx storybook-nuxt init #721

Open agantelin opened 4 months ago

agantelin commented 4 months ago

Running run npx storybook-nuxt init on fresh Nuxt project results to errors:

 Directory is not empty
▶ Initializing Storybook configuration...

Install dependencies 📦️

ℹ 🔌 enableModule  false                                                                                                                                                        02:16:57
node:events:497
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'install' ]
}

Node.js v20.15.1

Windows 11 Node.js v20.15.1 npm 10.8.2 Nuxt 3.12.3 @nuxtjs/storybook 8.1.5

tobiasdiez commented 4 months ago

The storybook-nuxt init script is obsolete and will be replaced by storybook init with https://github.com/storybookjs/storybook/pull/28607.

rtrap-rsi commented 3 months ago

Hi @tobiasdiez, thanks for your work! Have you news about when this could working? May I help someway?