Open bslayerw opened 4 years ago
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
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
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:
π Bug Report
I cannot create a new project. (A clear and concise description of what the bug is.)