Prerequisites
Stencil Version
latest (4.29)
Current Behavior
Running the following command fails on Windows:
After selecting component starter template, the CLI throws an error:
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-stencil
npm ERR! code 1
Expected Behavior
The project should scaffold correctly after selecting a starter template when running npm init stencil.
Workaround:
Using npx create-stencil@latest works as expected and successfully scaffolds the project.
System Info
**npm**: 10.8.2
**node**: v20.11.0
**OS**: Windows 11
Steps to Reproduce
- Run
npm init stencil on Windows (PowerShell or CMD).
- Choose component starter template.
- Observe the error after selection.
Additional Information
- Tried running it using
powershell, cmd, and git bash.
- I tried using a clean/empty project directory.
- Internet connection is fine,
npx create-stencil@latest worked.
- Seems like
create-stencil script is not resolving correctly when invoked via npm init.
Prerequisites
Stencil Version
latest (4.29)
Current Behavior
Running the following command fails on Windows:
After selecting component starter template, the CLI throws an error:
Expected Behavior
The project should scaffold correctly after selecting a starter template when running
npm init stencil.Workaround:
Using
npx create-stencil@latestworks as expected and successfully scaffolds the project.System Info
Steps to Reproduce
npm init stencilon Windows (PowerShell or CMD).Additional Information
powershell,cmd, andgit bash.npx create-stencil@latestworked.create-stencilscript is not resolving correctly when invoked vianpm init.