Skip to content

When initializing react native windows, dependency fails to download #2618

@danielsdesk

Description

@danielsdesk

When following the getting started guide for vnext, upon trying to initialize the project directory like this:

react-native windows --template vnext

failed output is like this:

Reading application name from package.json...
Reading react-native version from node_modules...
Checking for react-native-windows version matching 0.59.*...
Installing react-native-windows@0.59.0-vnext.4...
warning "react-native-windows > react-native-local-cli@1.0.0-alpha.5" has incorrect peer dependency "react-native@^0.57.0".
react-native-windows@0.59.0-vnext.4 successfully installed.
Updating to compatible version of react-native:
    0.59.0-microsoft.1 || https://github.com/Microsoft/react-native/archive/v0.59.0-microsoft.1.tar.gz
error An unexpected error occurred: "https://registry.yarnpkg.com/0.59.0-microsoft.1%20%7C%7C%20https://github.com/Microsoft/react-native/archive/v0.59.0-microsoft.1.tar.gz: Request failed \"405 Method Not Allowed\"".
Command failed: yarn
error An unexpected error occurred: "https://registry.yarnpkg.com/0.59.0-microsoft.1%20%7C%7C%20https://github.com/Microsoft/react-native/archive/v0.59.0-microsoft.1.tar.gz: Request failed \"405 Method Not Allowed\"".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions