create-react-library
create-react-library copied to clipboard
npx create-react-library does not finish executing
After running npx create-react-library
and filling out the prompts, the cli proceeds to install the dependancies but it never actually finishes executing. See attached screenshot of my terminal, I had to control+c
to get it to finish.
If I then go into the project and run yarn
or npm i
it installs the dependancies as expected.
I am on a macbook pro (m1) running Big Sur 11.4
me to on a macbook pro 2017 (intel) Big Sur
Same problem for me also on an M1
Same problem for me. If I switch to npm it does finish but with an error: Error: Command failed with exit code 127: npm install
I figured out that the problem is happening when the example project is being installed. Hope this helps!
npm ERR! code 127
npm ERR! path /Users/freddiemixell/repos/modal-router/node_modules/typescript
npm ERR! command failed
npm ERR! command sh -c gulp build-eslint-rules
npm ERR! sh: gulp: command not found
What is the solution for this?
try open example/package.json
and replace typescript's version in dependencies("file:../node_modules/typescript"
) to the one in root package.json
solution is here- https://github.com/transitive-bullshit/create-react-library/issues/293#issuecomment-779580256