Git Product home page Git Product logo

Comments (15)

arvind-coder avatar arvind-coder commented on May 21, 2024 5

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.

dholbrook86 avatar dholbrook86 commented on May 21, 2024 4

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.

bragamat avatar bragamat commented on May 21, 2024 3

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.

venkateshece1105 avatar venkateshece1105 commented on May 21, 2024 2

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.

dholbrook86 avatar dholbrook86 commented on May 21, 2024 1

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.

dholbrook86 avatar dholbrook86 commented on May 21, 2024 1

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.

dholbrook86 avatar dholbrook86 commented on May 21, 2024 1

Thank you so much for your help @TarikHuber!

from react-most-wanted.

TarikHuber avatar TarikHuber commented on May 21, 2024

This should fix the bug: TarikHuber/create-react-app@0bd5817

Thx for the issue report πŸ˜„

from react-most-wanted.

dholbrook86 avatar dholbrook86 commented on May 21, 2024

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.

TarikHuber avatar TarikHuber commented on May 21, 2024

Hi @dholbrook86 did you try it out with just npm?

from react-most-wanted.

TarikHuber avatar TarikHuber commented on May 21, 2024

Do you still have the problem? Have you tried it with this treath? grpc/grpc-node#121

from react-most-wanted.

TarikHuber avatar TarikHuber commented on May 21, 2024

Can you try to install the original Creat React App without any custom template.

from react-most-wanted.

Vipulgorana avatar Vipulgorana commented on May 21, 2024

my app ran yesterday perfectly and then today I resume coding and boom I saw this same error !!

from react-most-wanted.

Abdvkh avatar Abdvkh commented on May 21, 2024

Also can use:
npm uninstall -g create-react-app

from react-most-wanted.

yaminzan avatar yaminzan commented on May 21, 2024

only can run this commend line it will working
npm install -g node-pre-gyp

from react-most-wanted.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.