cli: Fails: react-native init helloworld --version 0.59.10
Environment
> react-native --version
react-native-cli: 2.0.1
react-native: n/a - not inside a React Native project directory
Description
react-native init helloworld --version 0.59.10
fails with:
...
├─ y18n@3.2.1
└─ yargs-parser@7.0.0
Done in 7.36s.
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '../../tools/PackageManager'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/home/titan/shared/tera/cloud9/tmp/tar/helloworld/node_modules/@react-native-community/cli/build/commands/install/install.js:10:46)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
full log: https://gist.github.com/mindlapse/625ceece338c17954e32d96497290672
Reproducible Demo
react-native init helloworld --version 0.59.10
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 18 (5 by maintainers)
Commits related to this issue
- chore: update react native cli dependency to 1.11.2 This should resolve an issue we're seeing in CI as described here: https://github.com/react-native-community/cli/issues/586 — committed to bweissbart/flagship by bweissbart 5 years ago
- chore: update react native cli dependency to 1.11.2 This should resolve an issue we're seeing in CI as described here: https://github.com/react-native-community/cli/issues/586 — committed to brandingbrand/flagship by bweissbart 5 years ago
- chore: update react native cli dependency to 1.11.2 This should resolve an issue we're seeing in CI as described here: https://github.com/react-native-community/cli/issues/586 — committed to brandingbrand/flagship by bweissbart 5 years ago
- Merge develop into rnn2 (#952) * fix(flagship): add targeted device to both Debug and Release config * feat: Write Reviews Baazarvoice implementation * refactor: move denormalize function to se... — committed to brandingbrand/flagship by vancehu 5 years ago
- Update to react-native 0.61.5 and Typescript 3.7.4 (#915) * chore: tell greenkeeper to ignore more dependencies react, metro-react-babel-preset, and babel should only be updated as part of coordinat... — committed to brandingbrand/flagship by Cauldrath 4 years ago
- Merge develop into feature/rn-60 (#1088) * fix(flagship): add targeted device to both Debug and Release config * feat: Write Reviews Baazarvoice implementation * refactor: move denormalize func... — committed to brandingbrand/flagship by Cauldrath 4 years ago
- feat: flagship 9 with rn 61 and rn navigation 4 (#1109) * add image carousel component * chore(fsengagement): upgrade rnn to version 2.26.3 * chore(fsapp): upgrade fsapp rnn to version 2.26.3 ... — committed to brandingbrand/flagship by bweissbart 4 years ago
- chore(repo): update react native cli dependency to 1.11.2 This should resolve an issue we're seeing in CI as described here: https://github.com/react-native-community/cli/issues/586 brandingbrand-so... — committed to crherman7/flagship by bweissbart 5 years ago
Fixed in 1.11.2. Please update the
@react-native-community/cli
to the latest version.same error delete node_modules and package-lock.json then update package.json “dependencies”: { “react”:"16.0.3 to “react”: “16.8.6”,} and in scritps { “test”:“jest” } => npm install --save , expo start it’s working in my code
thanks it worked now
Issue appears on multiple npm versions, including npm@next and npm@5.10.0, and with node 10.16.0 (LTS)