-
Notifications
You must be signed in to change notification settings - Fork 20
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 "spawn npm ENOENT" during initial setup via npx storybook-nuxt init #59
Comments
hi @Pecral is it possible for you to use pnpm instead, as it is fast and convenient. |
Hi @chakAs3, sadly I also have the issue in pnpm, as described above. Install dependencies 📦️ node:events:491 Error: spawn pnpm ENOENT Node.js v19.1.0 |
@Pecral can please create a repro repo for me so i can check it out |
It seems to be related to windows, as I don't have this issue on my macos machine. Will investigate further - a colleague of mine had the same issue on his windows machine |
yes i will be looking at it thx for the support |
Have you made any progress in solving the problem? This will help a lot. |
Please check https://storybook.nuxtjs.org/examples |
The same, followed by this https://storybook.nuxtjs.org/getting-started/setup `$ npx storybook-nuxt init Install dependencies 📦️ ℹ 🔌 enableModule false 18:11:42 Error: spawn pnpm ENOENT |
Instead of invoking the storybook cli, we now start the storybook dev server in the same process as the nuxt dev server. This has the advantage that we don't need to spawn a second nuxt instance, improving preformance and reducing complexifty. Fixes storybook-vue/storybook-nuxt#59 and fixes #610 and fixes #635 and fixes #475.
Environment
Windows 10
node.js 19.1
How to reproduce
Setup new project via:
npx nuxi@latest init
npx storybook-nuxt init
ornpx storybook-nuxt@nuxt init
Problem:
PS C:\VisualStudio\nuxt-test\nuxt-app> npx storybook-nuxt init
▶ Initializing Storybook configuration...
Install dependencies 📦️
node:events:491
throw er; // Unhandled 'error' event
^
Error: spawn npm ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483: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:291:12)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn npm',
path: 'npm',
spawnargs: [ 'install' ]
}
The text was updated successfully, but these errors were encountered: