Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find [email protected].*. / react-native-windows package not installed #2003

Closed
assurancetourix opened this issue Oct 17, 2018 · 8 comments
Labels

Comments

@assurancetourix
Copy link

assurancetourix commented Oct 17, 2018

Environment

  1. react-native -v:0.57
  2. npm ls rnpm-plugin-windows: [email protected]
  3. npm ls react-native-windows: first "empty" then [email protected] after ran npm install react-native-windows
  4. node -v:
  5. npm -v:

Then, specify:

  • Target Platform: UWP
  • Target Platform Version(s): Not known
  • Target Device(s): Desktop
  • Development Operating System: Windows
  • Visual Studio Version: 2017
  • Build Configuration: Not known

Steps to Reproduce

I have run the command react-native windows. And get "Could not find [email protected].*."
I have tried with differentversion of react-native (0.56, 0.54) but still gets the issue.

After running the command npm install --save-dev rnpm-plugin-windows, I realized that the package react-native-windows was not installed....And I manually installed it with npm install react-native-windows. Still the same error...

Would you have hints ?

Thanks.

@assurancetourix assurancetourix changed the title Could not find [email protected].*. / react-native-windows package not installed / proxy Could not find [email protected].*. / react-native-windows package not installed Oct 18, 2018
@assurancetourix
Copy link
Author

I managed to get it working by modifying the method getInstallPackage in node_modules\rnpm-plugin-windows\src\common.js to stg like:

const getInstallPackage = function (version) {
return Promise.resolve('react-native-windows');
};

Then the script has continued by installing react-native-windows and created the solution successfully.
However I am curious to known why this happened ?
Would you have hints ?

Thanks.

@rozele
Copy link
Collaborator

rozele commented Feb 26, 2019

Please confirm if you are still able to reproduce this issue. It may have been due to a mismatched version of react-native (e.g., we could not ship [email protected] due to incompatibility of the react-native version)

@Alex-Rose
Copy link

I can repro this as of today

PS > react-native windows
Reading application name from package.json...
Reading react-native version from node_modules...
Checking for react-native-windows version matching 0.58.*...
Could not find [email protected].*. Latest version of react-native-windows is 0.57.0-rc.5, try switching to [email protected].*.

I followed the instructions on the getting started page and this version got installed:

PS > npm v react-native-windows
[email protected]

Which does correspond to the latest available package on npm.

@rozele
Copy link
Collaborator

rozele commented Feb 28, 2019

@Alex-Rose - we haven't updated react-native-windows to [email protected] yet. In the meantime, you can try targeting [email protected]

@atrauzzi
Copy link

@rozele - React native is moving pretty quickly these days, 0.59 is just around the corner. Is this likely to continue being an issue or is there a plan in place to keep up?

@ntvinhit
Copy link

My project is using RN 0.59.*
I cannot revert it to RN 0.57 because I'm using RN hooks for almost my project.
Is there any plan to upgrade this repo for supporting RN 0.59?

@omissis
Copy link

omissis commented Apr 20, 2019

this PR here should update to 0.58: #2293

@chrisglein chrisglein added the .NET Archive Issue opened against deprecated .NET implementation, will be closed (label drives bot activity) label Mar 18, 2020
@ghost ghost removed the .NET Archive Issue opened against deprecated .NET implementation, will be closed (label drives bot activity) label Mar 24, 2020
@ghost
Copy link

ghost commented Mar 24, 2020

We are not investing in new features or lower priority bug fixes on the C# implementation of React Native for Windows (previously known as "vCurrent"). All investment moving forward is in the C++ infrastructure (previously known as "vNext") and that is the only option as of 0.61 (and was the default as of 0.60). If this issue is still relevant on the modern implementation please open a new issue. If this issue is of significant severity for a vCurrent app and vNext is not an option, re-open with justification.

@ghost ghost closed this as completed Mar 24, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants