Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run npx storybook-nuxt init #721

Open
agantelin opened this issue Jul 16, 2024 · 2 comments
Open

Error when run npx storybook-nuxt init #721

agantelin opened this issue Jul 16, 2024 · 2 comments
Labels
status: blocked Blocked by an issue / missing feature of a dependency, or by another issue type: bug Something isn't working

Comments

@agantelin
Copy link

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
Copy link
Collaborator

The storybook-nuxt init script is obsolete and will be replaced by storybook init with storybookjs/storybook#28607.

@tobiasdiez tobiasdiez added type: bug Something isn't working status: blocked Blocked by an issue / missing feature of a dependency, or by another issue labels Jul 16, 2024
@rtrap-rsi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked Blocked by an issue / missing feature of a dependency, or by another issue type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants