-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Description
Describe the bug
npx create-react-app mywebapp returned this at the end of the installation.
I own the directory and it has the right permissions.
git - along with npm, npx - are all updated and working fine on their own, except for this.
Git commit not created Error: Command failed: git commit -m "Initialize project using Create React App"
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at tryGitCommit (/home/vz/Projects/js/webapps/app/node_modules/react-scripts/scripts/init.js:62:5)
at module.exports (/home/vz/Projects/js/webapps/app/node_modules/react-scripts/scripts/init.js:352:25)
at [eval]:3:14
at Script.runInThisContext (vm.js:133:18)
at Object.runInThisContext (vm.js:310:38)
at internal/process/execution.js:77:19
at [eval]-wrapper:6:22
at evalScript (internal/process/execution.js:76:60) {
status: 128,
signal: null,
output: [ null, null, null ],
pid: 235054,
stdout: null,
stderr: null
}
Removing .git directory...
Did you try recovering your dependencies?
Not relevant
Which terms did you search for in User Guide?
git, bugs
Environment
❯ uname -a
Linux ERROR 5.8.0-33-generic #36-Ubuntu SMP Wed Dec 9 09:14:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
❯ npx create-react-app --info
npx: installed 67 in 3.584s
Environment Info:
current version of create-react-app: 4.0.1
running from /home/vz/.npm/_npx/235608/lib/node_modules/create-react-app
System:
OS: Linux 5.8 Ubuntu 20.10 (Groovy Gorilla)
CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
Binaries:
Node: 14.15.3 - /usr/bin/node
Yarn: Not Found
npm: 6.14.10 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: 84.0.2
npmPackages:
react: ^17.0.1 => 17.0.1
react-dom: ^17.0.1 => 17.0.1
react-scripts: 4.0.1 => 4.0.1
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce
npx create-react-app mywebapp
Expected behavior
should create the react project, initialize the git repository, and perform the initial commit
Actual behavior
creates the react app but does not initialize the git repository and perform the initial commit
Reproducible demo
npx create-react-app mywebapp