question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work with create-react-app

See original GitHub issue

$ npx install-peerdeps ookook

I created a create-react-app project and tried to use install-peerdeps to install another package, and its peers, to the CRA app.

npx create-react-app foo
cd foo
npx install-peerdeps ookook

I have peerdeps in that file.

What am I doing wrong? :\

Also, I’ve had problems with understanding how this project works exactly in the past. High level, how is it supposed to work? I would assume it would download a copy of ookook from npm, then look at the package.json of it for a peerDeps field, then loop over those deps running npm/yarn install/add dep.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
AllanFerenczcommented, Dec 31, 2019

I’m currently having the same issue with a different package.

npx install-peerdeps --dev eslint-config-wesbos

With a Next.js project. I’m going to try passing the Y flag.

Using the -Y flag worked. Thanks

2reactions
corysimmonscommented, Dec 27, 2019

Seems to be related to It seems as if you are using Yarn. Would you like to use Yarn for the installation? (y/n) y

If I enter anything there, it just exits out silently/immediately. But npx install-peerdeps ookook -Y works as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create React App not working - Stack Overflow
1. update the npm version (npm install npm@latest -g) · 2. clear the cache (npm cache clean --force) · 3. create the react...
Read more >
What To Do if create-react-app Doesn't Work
1. npm uninstall -g create-react-app. This is the npm command to uninstall your global installation of create-react-app .
Read more >
npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >
npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >
The problem with adopting create-react-app for production
But in real life, your application will not stay within the proposed limits of the create-react-app framework. Sooner or later, your app will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found