create-react-library icon indicating copy to clipboard operation
create-react-library copied to clipboard

npx create-react-library does not finish executing

Open damiensedgwick opened this issue 3 years ago • 7 comments

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.

image

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

damiensedgwick avatar Aug 07 '21 13:08 damiensedgwick

me to on a macbook pro 2017 (intel) Big Sur

ahmedsayedabdelsalam avatar Aug 24 '21 13:08 ahmedsayedabdelsalam

Same problem for me also on an M1

CodingByJerez avatar Oct 14 '21 08:10 CodingByJerez

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

freddiemixell avatar Nov 21 '21 18:11 freddiemixell

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

freddiemixell avatar Nov 21 '21 19:11 freddiemixell

What is the solution for this?

dashty94 avatar Dec 01 '21 11:12 dashty94

try open example/package.json and replace typescript's version in dependencies("file:../node_modules/typescript") to the one in root package.json

kyuhyunhan avatar Mar 15 '22 13:03 kyuhyunhan

solution is here- https://github.com/transitive-bullshit/create-react-library/issues/293#issuecomment-779580256

chriszrc avatar Mar 23 '22 16:03 chriszrc