Hi franck, facing same error for this command too.
C:\Users\abhis>npm init react-app my-app1
Creating a new React app in C:\Users\abhis\my-app1.
Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts...
core-js@2.6.11 postinstall C:\Users\abhis\my-app1\node_modules\babel-runtime\node_modules\core-js node -e "try{require('./postinstall')}catch(e){}"
npm ERR! code ELIFECYCLE npm ERR! syscall spawn C:\Program Files\git\bin\bash.exe npm ERR! file C:\Program Files\git\bin\bash.exe npm ERR! path C:\Program Files\git\bin\bash.exe npm ERR! errno ENOENT npm ERR! core-js@2.6.11 postinstall: node -e "try{require('./postinstall')}catch(e){}" npm ERR! spawn C:\Program Files\git\bin\bash.exe ENOENT npm ERR! npm ERR! Failed at the core-js@2.6.11 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
node -e "try{require('./postinstall')}catch(e){}"
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\abhis\AppData\Roaming\npm-cache_logs\2020-08-14T21_27_12_459Z-debug.log
Aborting installation. npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... node_modules Deleting generated file... package.json Deleting my-app1 / from C:\Users\abhis Done.
Hi Abhi. Well, I am sending you a link that I hope might be useful. Creating react apps could be tricky sometimes. We often have to try different things before making it work. Here is the link...
stackoverflow.com/questions/478430...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi franck, facing same error for this command too.
C:\Users\abhis>npm init react-app my-app1
Creating a new React app in C:\Users\abhis\my-app1.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Program Files\git\bin\bash.exe
npm ERR! file C:\Program Files\git\bin\bash.exe
npm ERR! path C:\Program Files\git\bin\bash.exe
npm ERR! errno ENOENT
npm ERR! core-js@2.6.11 postinstall:
node -e "try{require('./postinstall')}catch(e){}"
npm ERR! spawn C:\Program Files\git\bin\bash.exe ENOENT
npm ERR!
npm ERR! Failed at the core-js@2.6.11 postinstall 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\abhis\AppData\Roaming\npm-cache_logs\2020-08-14T21_27_12_459Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app1 / from C:\Users\abhis
Done.
Hi Abhi. Well, I am sending you a link that I hope might be useful. Creating react apps could be tricky sometimes. We often have to try different things before making it work. Here is the link...
stackoverflow.com/questions/478430...