react-native -v
:0.57npm ls rnpm-plugin-windows
: [email protected]npm ls react-native-windows
: first "empty" then [email protected] after ran npm install react-native-windowsnode -v
:npm -v
:Then, specify:
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.
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.
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)
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.
@Alex-Rose - we haven't updated react-native-windows to [email protected] yet. In the meantime, you can try targeting [email protected]
@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?
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?
this PR here should update to 0.58: https://github.com/Microsoft/react-native-windows/pull/2293
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.
Most helpful comment
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?