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.

npm run eject silently fails when a config folder already exist

See original GitHub issue

Description

npm run eject silently fails when a config folder already exist.

Expected behavior

It’s a common behavior to have a /config folder at the base of a project. npm run eject should throw an error or even better, “merge” new files with existing ones.

Actual behavior

➜  react-starter git:(master) mkdir config
➜  react-starter git:(master) npm run eject

> react-scripts eject

Are you sure you want to eject? This action is permanent. [y/N]
y
Ejecting...
➜  react-starter git:(master)

Environment

node -v: 5.0.0 npm -v: 3.3.6 Operating system: macOS Sierra

Reproducible Demo

  • Clone the repo
  • mkdir config
  • npm run eject

Thanks 🙏

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ugogocommented, Nov 18, 2016
> react-scripts eject

Are you sure you want to eject? This action is permanent. [y/N]
y
Ejecting...
`config` already exists in your app folder. We cannot continue as you would lose all the changes in that file or directory. Please move or delete it (maybe make a copy for backup) and run this command again.

npm ERR! Darwin 16.1.0
…

All’s good, thanks 👍

0reactions
moffsugitacommented, Oct 25, 2018

Me too where is the file?? config already exists in your app folder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

undo 'npm run eject' in react
I was trying to test the performance of my React app(created with create-react-app) with react CDN script and i did 'npm run eject'...
Read more >
treem_22
To update an existing project to a new version of react-scripts , open the changelog, find the version you're currently on (check package.json ......
Read more >
The React Scripts Start Command – Create-React-App ...
The script generates the required files and folders to start the React application and run it on the browser. This allows you to...
Read more >
pnpm run
Aliases: run-script. ... You can now run that script by using pnpm run watch ! ... that do not share the same name...
Read more >
Everything you need to know about react-scripts
What is a script? start; test; build; eject ... Every configuration required for the React app comes through the react-scripts package. Now ......
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