aakashns / create-component-lib

Create a library of React components that can be published to npm
https://npmjs.com/create-component-lib
MIT License
89 stars 13 forks source link

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

Open szhengresponsetek opened 2 years ago

szhengresponsetek commented 2 years ago

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?

adm-j commented 2 years ago

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.