Coder Social home page Coder Social logo

Comments (3)

dluc avatar dluc commented on June 6, 2024

same here

(node:54011) UnhandledPromiseRejectionWarning: Error: Cannot find module 'react-native/package.json'
Require stack:
- /Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/@react-native-community/cli/build/commands/init/initCompat.js
- /Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/@react-native-community/cli/build/cliEntry.js
- /Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/@react-native-community/cli/build/index.js
- /Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/react-native-macos/cli.js
- /usr/local/lib/node_modules/react-native-macos-cli/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at generateProject (/Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:114:19)
    at Object.initCompat [as init] (/Users/test/workspace/me/reactnativemacos/SomeTest/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:104:9)
    at run (/usr/local/lib/node_modules/react-native-macos-cli/index.js:306:7)
    at createProject (/usr/local/lib/node_modules/react-native-macos-cli/index.js:254:3)
    at init (/usr/local/lib/node_modules/react-native-macos-cli/index.js:202:5)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-macos-cli/index.js:155:7)
(node:54011) 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: 2)
(node:54011) [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.
# npm -v
6.13.7
# node -v
v13.8.0
# yarn -v
1.22.0
# react-native -v
react-native-cli: 2.0.1
# react-native-macos -v
react-native-macos-cli: 2.0.1

from react-native-macos.

Shummy1991 avatar Shummy1991 commented on June 6, 2024

Same here

(node:88224) UnhandledPromiseRejectionWarning: Error: Cannot find module 'react-native/package.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
    at Function.Module._load (internal/modules/cjs/loader.js:539:25)
    at Module.require (internal/modules/cjs/loader.js:667:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at generateProject (/Users/danielbali/macostest/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:114:19)
    at Object.initCompat [as init] (/Users/danielbali/macostest/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:104:9)
    at run (/Users/danielbali/.nvm/versions/node/v11.10.1/lib/node_modules/react-native-macos-cli/index.js:306:7)
    at createProject (/Users/danielbali/.nvm/versions/node/v11.10.1/lib/node_modules/react-native-macos-cli/index.js:254:3)
    at init (/Users/danielbali/.nvm/versions/node/v11.10.1/lib/node_modules/react-native-macos-cli/index.js:202:5)
    at Object.<anonymous> (/Users/danielbali/.nvm/versions/node/v11.10.1/lib/node_modules/react-native-macos-cli/index.js:155:7)
(node:88224) 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(). (rejection id: 2)
(node:88224) [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.

node --version
v11.10.1

yarn --version
1.22.0

from react-native-macos.

caojianfeng avatar caojianfeng commented on June 6, 2024

info Setting up new React Native app in /Volumes/user/cjf/w/desktop/life_timer
(node:33596) UnhandledPromiseRejectionWarning: Error: Cannot find module 'react-native/package.json'
Require stack:

  • /Volumes/user/cjf/w/desktop/life_timer/node_modules/@react-native-community/cli/build/commands/init/initCompat.js
  • /Volumes/user/cjf/w/desktop/life_timer/node_modules/@react-native-community/cli/build/cliEntry.js
  • /Volumes/user/cjf/w/desktop/life_timer/node_modules/@react-native-community/cli/build/index.js
  • /Volumes/user/cjf/w/desktop/life_timer/node_modules/react-native-macos/cli.js
  • /Users/caojianfeng/.config/yarn/global/node_modules/react-native-macos-cli/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at generateProject (/Volumes/user/cjf/w/desktop/life_timer/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:114:19)
    at Object.initCompat [as init] (/Volumes/user/cjf/w/desktop/life_timer/node_modules/@react-native-community/cli/build/commands/init/initCompat.js:104:9)
    at run (/Users/caojianfeng/.config/yarn/global/node_modules/react-native-macos-cli/index.js:306:7)
    at createProject (/Users/caojianfeng/.config/yarn/global/node_modules/react-native-macos-cli/index.js:254:3)
    at init (/Users/caojianfeng/.config/yarn/global/node_modules/react-native-macos-cli/index.js:202:5)
    at Object. (/Users/caojianfeng/.config/yarn/global/node_modules/react-native-macos-cli/index.js:155:7)
    (node:33596) 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(). (rejection id: 2)
    (node:33596) [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.
    soukenbons-iMac:desktop caojianfeng$ node --version
    v12.14.1
    soukenbons-iMac:desktop caojianfeng$ yarn --version
    1.12.3
    soukenbons-iMac:desktop caojianfeng$ npm -v
    6.13.4
    soukenbons-iMac:desktop caojianfeng$ react-native -v
    react-native-cli: 2.0.1
    react-native: n/a - not inside a React Native project directory
    soukenbons-iMac:desktop caojianfeng$ react-native-macos -v
    react-native-macos-cli: 2.0.1
    react-native-macos: n/a - not inside a React Native project directory

from react-native-macos.

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.