react-most-wanted: Error creating project: Error: ENOENT: no such file or directory
On executing, I get an error:
$ npx create-react-app test-app --scripts-version rmw-react-scripts
...
Success! Created test-app at /Users/adnaan/code/js/test-app
Inside that directory, you can run several commands:
yarn start
Starts the development server.
yarn build
Bundles the app into static files for production.
yarn test
Starts the test runner.
yarn eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd test-app
yarn start
Happy hacking!
/Users/adnaan/code/js/test-app/node_modules/rmw-react-scripts/scripts/init.js:117
throw err;
^
Error: ENOENT: no such file or directory, link '/Users/adnaan/code/js/test-app/functions/gitignore' -> '/Users/adnaan/code/js/test-app/functions/.gitignore'
Further :
$ cd test-app
$ yarn start
yarn run v1.7.0
warning ../../../package.json: No license field
$ react-scripts start
env: node\r: No such file or directory
error Command failed with exit code 127.
ENV :
node -v
v8.11.1
npm -v
5.6.0
yarn -v
1.7.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (4 by maintainers)
solve my problem
npm ERR! code ENOENT npm ERR! syscall open npm ERR! path F:\ReactProject\robofriends-redux-master\package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open ‘F:\ReactProject\robofriends-redux-master\package.json’ npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2019-10-01T07_27_00_817Z-debug.log
I was able to get it to work with the following steps.
npx create-react-app test-app --scripts-version rmw-react-scriptscd test-appnpm install -g node-pre-gypnpm inpm startThe
node-pre-gypwas tripping me up. I didn’t have this globally installed.I had a similar problema, solved with:
yarn global remove create-react-appand then
npx create-react-app my-appAnyone can Solve this issue,i tried many way from the same issues.kindly help me!!!
events.js:187 throw er; // Unhandled ‘error’ event ^
Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) Emitted ‘error’ event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) { errno: ‘ENOENT’, code: ‘ENOENT’, syscall: ‘spawn cmd’, path: ‘cmd’, spawnargs: [ ‘/s’, ‘/c’, ‘start’, ‘“”’, ‘/b’, ‘“http://localhost:3000/”’ ] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! project@0.1.0 start:
react-scripts startnpm ERR! Exit status 1 npm ERR! npm ERR! Failed at the project@0.1.0 start 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\system8\AppData\Roaming\npm-cache_logs\2019-12-11T11_51_45_014Z-debug.log
Thank you so much for your help @TarikHuber!
I ran the installer then entered the directory and ran
npm iHere’s the error:
I think that’s what I did the first time I tried it. Then I wiped it clean and tried yarn. I can give it another shot.