react project, execute NPM run eject to generate configuration file, and report error:
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! /Users/fengyang/.npm/_logs/2018-12-26T08_28_06_453Z-debug.log
error reporting reason:
The scaffold adds a. Gitgnore file, but there is no local repository
solution:
cd project git init // New codebase in current directory git add . // Add all files in the current directory to the staging area git commit -m 'Saving before ejecting' // Commit the staging area to the repository area npm run eject
Similar Posts:
- [Solved] Mobx error: Support for the experimental syntax ‘decorators-legacy’ isn’t currently enab
- [Solved] Please clean your repository working tree before checkout
- Git ignore rule (.Gitignore configuration) does not Wrok [How to Fix]
- [Solved] React Project Start Error: Uncaught TypeError: Cannot read property ‘forEach‘ of undefined
- [Solved] Computer reboot causes broken git files
- [Solved] react Project Error: Support for the experimental syntax ‘decorators-legacy’ isn’t currently enabled
- [Solved] Hadoop Error: The directory item limit is exceeded: limit=1048576 items=1048576
- NPM install socket.io[UNK][UNK] error: [UNK](npm WARN enoent ENOENT: no such file or directory, open ‘/usr/local/no…
- React uses antd to import error messages on demand
- [Solved] React Native Error: A problem occurred configuring project ‘:app’. and Execution failed for t…