create-component-lib icon indicating copy to clipboard operation
create-component-lib copied to clipboard

can not create component library with npx create-component-lib <project name>

Open szhengresponsetek opened this issue 3 years ago • 1 comments

After install create-component-lib with npm i create-component-lib, I tried to create a project with command like npx create-component-lib mycomponentlib within Visual Studio Code editor and I got error: '"/bin/bash"' is not recognized as an internal or external command, operable program or batch file.

This command looks to me is that it may be just works for Mac. Do you have a version for Windows 10?

szhengresponsetek avatar Jan 04 '22 01:01 szhengresponsetek

I know this is 6 months later but everyone's benefit, being Bash this script is not going to work out of the box on Windows. You can check this out: https://stackoverflow.com/questions/27858806/can-i-run-a-linux-shell-script-in-windows Alternatively, you can install WSL (Windows Subsystem for Linux) and then open a Linux terminal to run the script - the windows store has Ubuntu with instructions on how to install. Ubuntu is a popular Linux distro so there is plenty of support online if you need it.

adm-j avatar Jul 04 '22 18:07 adm-j