You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a react application in my localhost, but I am not able to.
When I type "npm install -g create-react-app" and hit enter an error happens:
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file.
After that when I create a react app and start I get this:
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sahin\AppData\Roaming\npm-cache_logs\2020-01-27T03_57_12_848Z-debug.log
when I add start script in manifest I get these:
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Python27\Scripts
npm ERR! file C:\Python27\Scripts
npm ERR! path C:\Python27\Scripts
npm ERR! errno ENOENT
npm ERR! [email protected] start: node your-script.js
npm ERR! spawn C:\Python27\Scripts ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered:
However, none of the linked issues seem to provide a solution or explanation why it happens. The explanation in #1019 (comment) seems somewhat reasonable though.
@sahin52 - is this issue resolved?
for me with your issue seems like your installation requires python , if it is installed make sure it is configured correctly or else installing python may resolve your issue
I am trying to create a react application in my localhost, but I am not able to.
When I type "npm install -g create-react-app" and hit enter an error happens:
'CALL "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or external command, operable program or batch file.
After that when I create a react app and start I get this:
npm ERR! missing script: start
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sahin\AppData\Roaming\npm-cache_logs\2020-01-27T03_57_12_848Z-debug.log
when I add start script in manifest I get these:
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\Python27\Scripts
npm ERR! file C:\Python27\Scripts
npm ERR! path C:\Python27\Scripts
npm ERR! errno ENOENT
npm ERR! [email protected] start:
node your-script.js
npm ERR! spawn C:\Python27\Scripts ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: