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

Installation not working on windows #1444

Open
1 of 12 tasks
Giuliano1993 opened this issue May 12, 2024 · 0 comments
Open
1 of 12 tasks

Installation not working on windows #1444

Giuliano1993 opened this issue May 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Giuliano1993
Copy link
Contributor

I am interested in helping provide a fix!

Yes

Which generators are impacted?

  • All
  • Angular
  • HTML
  • Preact
  • Qwik
  • React
  • React-Native
  • Solid
  • Stencil
  • Svelte
  • Vue
  • Web components

Reproduction case

.

Expected Behaviour

When running the command npm run start inside the library folder it should start watching files and generating components for the single frameworks

Actual Behaviour

This does not happens on windows since it results in the following error:

PS C:\Users\giuli\Desktop\projects\ccc\library> npm run start

> start
> watch 'npm run build' ./src

> Watching run
> Watching build'
> Watching ./src
C:\Users\giuli\Desktop\projects\ccc\node_modules\watch\main.js:73
    if (err) throw err;
             ^

[Error: ENOENT: no such file or directory, stat 'C:\Users\giuli\Desktop\projects\ccc\library\run'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'C:\\Users\\giuli\\Desktop\\projects\\ccc\\library\\run'
}

Node.js v20.13.1
npm ERR! Lifecycle script `start` failed with error:
npm ERR! Error: command failed
npm ERR!   in workspace: @ccc/library
npm ERR!   at location: C:\Users\giuli\Desktop\projects\ccc\library

Additional Information

Turns out that the problem is in the packaje.json start script that uses single quotes for the command npm run build.
In windows terminal that does not work. The problem can be fixed by replacing the single quotes with escaped double quotes.
I'm wishing to open a PR to fix this.

@Giuliano1993 Giuliano1993 added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant