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:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.