Comments (3)
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.
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.
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)
- NPM release HOT 1
- [RFC] upgrade React to v16.6.3 HOT 1
- (react-native-svgkit) SVG support for macOS
- Unofficial roadmap HOT 6
- UIExplorer: transforms not working with position HOT 5
- onpress emit in error area when view use transform HOT 4
- textAlign not work HOT 2
- on mouse right click, show up context menu HOT 3
- TouchableHighlight works only with the first touch HOT 1
- TextInput ignores all style prop
- Build failed: Print: Entry, ":CFBundleIdentifier", Does Not Exist HOT 2
- Failing CI - Travis CI not configured HOT 2
- Project Catalyst. Does it truly deprecates this RN fork? HOT 4
- ENOENT: no such file or directory, chdir HOT 1
- Incompatible with React 16.3 Context Provider API
- Can't change BackgroundColor of TextInput
- command not found: react-native-macos HOT 1
- command not found: react-native-macos
- Unable to start macOS app created from the template (without manual pod installation)
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-native-macos.