A
A
Andrew Lynx2019-03-09 21:37:06
React
Andrew Lynx, 2019-03-09 21:37:06

Why doesn't nmp run eject work?

Downloaded the lesson. The author in the terminal enters the above command, and he is fine and has no problems. As a result, the config folder appears, and I have this:

react-scripts eject

? Are you sure you want to eject? This action is permanent. Yes
This git repository has untracked files or uncommitted changes:

.idea/encodings.xml
D .idea/misc.xml
D .idea/modules.xml
D .idea/my-app.iml
M .idea/workspace.xml
M package-lock.json
M package.json
M public/index.html
src/App.css
M src/App.js
src/App.test.js
src/logo.svg
src/hoc/

Remove untracked files, stash or commit any changes, and try again.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] eject: `react-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] eject script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Joe\AppData\Roaming\npm-cache\_logs\2019-03-09T18_32_13_689Z-debug.log

There's nothing complicated here. I don't understand what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JorJeG, 2019-03-09
@mRForumman

Your git keeps track of file changes.
If you want to save the changes, then either commit them, or save them in a stashe, that's what it says there

M
MontyDon, 2021-06-17
@MontyDon

You need to write the following
git add .
git commit -am "Save before ejecting"
npm run eject or yarn eject

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question