Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

Can't use cli on windows #4

@francesco-clementi-92

Description

@francesco-clementi-92

Can't use the cli on windows 10 with node js 10 or 12:

Creating myapp, brought to you by webRidge.

  Please wait till everything is finished :)



Could not create React Native project {
  error: Error: spawn npx ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
      at onErrorNT (internal/child_process.js:469:16)
      at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    errno: 'ENOENT',
    code: 'ENOENT',
    syscall: 'spawn npx',
    path: 'npx',
    spawnargs: [ 'react-native', 'init', 'larted' ]
  }
}

 Created two projects in two directories. Let's merge them to one project ;)

(node:8384) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'larted-web-will-be-deleted-afterwards/package.json'
    at Object.openSync (fs.js:462:3)
    at Object.readFileSync (fs.js:364:35)
    at C:\Users\cico\AppData\Roaming\npm-cache\_npx\8384\node_modules\create-react-native-web-application\dist\index.js:58:29
    at Generator.throw (<anonymous>)
    at asyncGeneratorStep (C:\Users\cico\AppData\Roaming\npm-cache\_npx\8384\node_modules\create-react-native-web-application\dist\index.js:10:103)
    at _throw (C:\Users\cico\AppData\Roaming\npm-cache\_npx\8384\node_modules\create-react-native-web-application\dist\index.js:12:291)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:8384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8384) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.``` 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions