-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within create-stencilThis PR or Issue is verified to be a bug within create-stencilHelp Wanted
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
latest (4.29)
Current Behavior
Running the following command fails on Windows:
npm init stencil
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
, andgit 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 vianpm init
.
mamillastre
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within create-stencilThis PR or Issue is verified to be a bug within create-stencilHelp Wanted