microsoft / microsoft/react-native-windows-samples

Troubleshooting: Uninstall global copy of react native

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation enhancement
Dominant language
C#
Stars
544
Forks
218
PR merge metrics
No merged PRs in 30d

Description

Update the docs to include troubleshooting information as per this thread: https://github.com/microsoft/react-native-windows/issues/4436#issuecomment-614945700

this is caused by a stale version of react-native installed globally on your machine. please uninstall your global copy of react-native. Or update it.
npm uninstall -g react-native

Possible symptom:

react-native-windows@0.61.3 successfully installed.
Cannot find module '@react-native-community/cli/build/tools/copyAndReplace'
F:\Vs Apps\react_native_windows_todo\node_modules\react-native-windows\local-cli\generator-common\index.js
F:\Vs Apps\react_native_windows_todo\node_modules\react-native-windows\local-cli\generator-windows\index.js

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked React Native Windows issue thread and identify the repository's troubleshooting documentation entry point. Add the stale global react-native symptom, the suggested npm uninstall -g react-native command, and the shown module error; the work is done when the troubleshooting guidance is documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.