cli: au new --here fails to scaffold project

I’m submitting a bug report

  • Library Version: 2.0.2

Please tell us about your environment:

  • Operating System: Windows 10

  • Node Version: 15.0.1

  • NPM Version: 7.0.3

  • Browser: n/a

  • Language: n/a

  • Loader/bundler: n/a

Current behavior: calling au new ( or npx makes aurelia/v1) returns an error:

Global aurelia-cli v2.0.2
makes v2.0.1 https://makes.js.org
Cannot find git repo aurelia\v1
npm ERR! code 1
npm ERR! path C:\Dev\Scratch\aurelia-routing-with-backend
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c ""makes" "aurelia\v1" "--here""
  • What is the expected behavior? Command completes without error

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (14 by maintainers)

Most upvoted comments

npm v7.5.2 is released with fix of the npx ignoring latest version.

It looks like win32 rewrote aurelia/v1 to aurelia\v1 because it thinks it’s a local path.

https://github.com/aurelia/cli/blob/02365f8ece35d0155b146d22645d4073fc50df2f/lib/commands/new/command.js#L7

It’s probably the behaviour of spawn in child_process. I will run some tests.