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

Unable to start a new storybook nuxt project on windows #88

Closed
gab9281 opened this issue Feb 2, 2024 · 1 comment
Closed

Unable to start a new storybook nuxt project on windows #88

gab9281 opened this issue Feb 2, 2024 · 1 comment

Comments

@gab9281
Copy link

gab9281 commented Feb 2, 2024

node version : 20.11.0
yarn version : 1.22.21
windows version : 23H2 (22631.3085)

Step to reproduce :

  • Create nuxt3 repository using npx nuxi@latest init
  • Select yarn as package manager
  • add storybook using yarn add -D @storybook-vue/nuxt-storybook
  • Add nuxt config :
  modules: [
    '@storybook-vue/nuxt-storybook',
  ],
  storybook: {
    url: 'http://localhost:6006',
    storybookRoute: '/__storybook__',
    port: 6006,
  },
  • yarn run dev

Result :

node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarn 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 yarn',
  path: 'yarn',
  spawnargs: [ 'install' ]
}

Try to identify the situation :

  • Do the same steps but in wsl-ubuntu
  • WORKS !
  • Copy the dependencies :
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "storybook": "7.6.7",
    "@types/node": "^18.17.5",
    "@storybook/vue3": "7.6.7",
    "@storybook-vue/nuxt": "0.2.1",
    "@nuxtjs/storybook": "7.0.0",
    "@storybook/addon-links": "7.6.7",
    "@storybook/builder-vite": "7.6.7",
    "@storybook/addon-essentials": "7.6.7",
    "@storybook/addon-interactions": "7.6.7",
    "@storybook/testing-library": "^0.2.0",
    "@storybook/blocks": "7.6.7"
  • run yarn install

Result : same error

node:events:496
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarn 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 yarn',
  path: 'yarn',
  spawnargs: [ 'install' ]
}

2nd resolution try (with deps of 1st try) :

  • Upgrade yarn
    • admin console : corepack enable
    • yarn set version stable ( v 4.1.0 )
    • yarn install
    • yarn run dev : Works ...

I've been working a full day on this previously @ job (4 days ago) and had a esbuild-arm@npm20.0.0 error at theses steps.
I am still posting this due to being helpfull for those stuck @ step1 but i'm confused.

For thoses that were wondering :
Trying a clean state with yarn 4.1.0 does not fix the issue

@gab9281
Copy link
Author

gab9281 commented Feb 2, 2024

Wrong repo, sorry

@gab9281 gab9281 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant