Skip to content

Fresh react-native-windows app creation fails with "^0.79.0" specified #1088

@Ferry-200

Description

@Ferry-200

Page url

https://microsoft.github.io/react-native-windows/docs/getting-started

Problem Description

Same with microsoft/react-native-windows#15081

PS D:\RNProjects> npx @react-native-community/cli@latest init WindowsPlayground --verbose --version ^0.79.0
Need to install the following packages:
@react-native-community/cli@20.0.2
Ok to proceed? (y)

debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Failed to get concrete version from '^0.79.0': , Error: Unknown version react-native@^0.79.0
debug [template]: is '^0.79.0 (0.79.0)' < '0.75.0' = no, look for template in @react-native-community/template
error Cannot read properties of null (reading 'major').
TypeError: Cannot read properties of null (reading 'major')
    ...
PS D:\RNProjects> npx @react-native-community/cli@latest init WindowsPlayground --verbose --version "0.79.0"
Need to install the following packages:
@react-native-community/cli@20.0.2
Ok to proceed? (y)

debug We couldn't find a package.json in your project. Are you sure you are running it inside a React Native project?
debug Failed to load configuration of your project. Only a subset of commands will be available.
debug Mapped: 0.79.0 -> 0.79.0
debug [template]: is '0.79.0 (0.79.0)' < '0.75.0' = no, look for template in @react-native-community/template
debug Template: '@react-native-community/template@0.79.0'
debug Initializing new project
Image

Metadata

Metadata

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions