Comments (15)
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
from react-most-wanted.
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.
from react-most-wanted.
I had a similar problema, solved with:
yarn global remove create-react-app
and then npx create-react-app my-app
from react-most-wanted.
Anyone 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! [email protected] start: react-scripts start
npm ERR! Exit status 1
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.
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
from react-most-wanted.
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.
from react-most-wanted.
I ran the installer then entered the directory and ran npm i
Here's the error:
> node-pre-gyp install --fallback-to-build --library=static_library
sh: node-pre-gyp: command not found
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] || 0.2.x but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of material-ui@>= 0.17 < 1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@>= 15 < 16.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>= 15 < 16.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@15 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.4.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^15.4.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@>=4.18.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint-plugin-react@>=7.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@>=4.18.0 but none is installed. You must install peer dependencies yourself.
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from react-most-wanted.
Thank you so much for your help @TarikHuber!
from react-most-wanted.
This should fix the bug: TarikHuber/create-react-app@0bd5817
Thx for the issue report π
from react-most-wanted.
The issue doesn't seem to be fixed.
Clean install:
β¨ Done in 7.84s.
Success! Created test-app at /Users/folder/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!
More:
yarn run v1.7.0
$ react-scripts start
env: node\r: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ENV:
node -v
v8.11.3
npm -v
5.6.0
yarn -v
1.7.0
from react-most-wanted.
Hi @dholbrook86 did you try it out with just npm?
from react-most-wanted.
Do you still have the problem? Have you tried it with this treath? grpc/grpc-node#121
from react-most-wanted.
Can you try to install the original Creat React App without any custom template.
from react-most-wanted.
my app ran yesterday perfectly and then today I resume coding and boom I saw this same error !!
from react-most-wanted.
Also can use:
npm uninstall -g create-react-app
from react-most-wanted.
only can run this commend line it will working
npm install -g node-pre-gyp
from react-most-wanted.
Related Issues (20)
- Hello this is not a big issue, just personal issue HOT 1
- `npm install` fails HOT 1
- Consider generating source maps
- Generated app is not working HOT 2
- Generated app with --template rmw is not working
- Loading icon in rmw-shell template is not centered
- MUI Shell template has a compile error immediately
- Handle routes for react-dom v6 HOT 5
- Generating app with --template rmw intl-relativetimeformat dependency HOT 10
- Can't resolve './config' HOT 1
- Testing tools, Cypress, RTL HOT 1
- Can't login to app HOT 11
- firebase deploy --only functions HOT 26
- RTL Mode
- rmw template fails to install "Conflicting peer dependency" HOT 4
- redirect to previous authenticated path after signing in
- I'm no able to install this template with `npx create-react-app` HOT 13
- npx create-react-app error HOT 11
- Firebase Phone number authentication not working
- Menu - Auth menu list items not rendering when within nested list items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-most-wanted.