Error creating project: Error: ENOENT: no such file or directory
See original GitHub issueOn 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How to resolve Nodejs: Error: ENOENT: no such file or directory
Your app is expecting to find a file at /home/embah/node/nodeapp/config/config.json but that file does not exist (which is what ENOENT ...
Read more >Error: ENOENT: no such file or directory" for deleted file · Issue ...
In my case, it was resolved after making sure that the nx root folder was the git root folder. Not working: project -...
Read more >Package Manager: ENOENT: no such file or directory, mkdir
Description* Attempting to create or open a project when there is a quote in the project path/name or in the UPM cache path...
Read more >npm WARN tar ENOENT: no such file or directory - MediaWiki
The common thing that I have found for both of these is that when I go into each node_modules directory, it shows that...
Read more >Error: ENOENT: no such file or directory, stat '/opt/render ...
I have a next error: Error: ENOENT: no such file or directory, stat '/opt/render/project/src/client/build/index.html My code here: if ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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-scripts
cd test-app
npm install -g node-pre-gyp
npm i
npm start
The
node-pre-gyp
was tripping me up. I didn’t have this globally installed.