realm-js: Cannot install realm 10.20.x
How frequently does the bug occur?
All the time
Description
Hello there , I am trying to install the latest version of the realm but it gives me the below error,
error D:\UzefShaikh\GIT\mobile_app\node_modules\realm: Command failed.
Exit code: 1
Command: prebuild-install --tag-prefix= -r napi || cmake-js build
Arguments:
Directory: D:\UzefShaikh\GIT\mobile_app\node_modules\realm
Output:
prebuild-install warn install self signed certificate in certificate chain
[
'C:\\Program Files\\nodejs\\node.exe',
'C:\\Users\\Uzef762486\\AppData\\Roaming\\npm\\node_modules\\cmake-js\\bin\\cmake-js',
'build'
]
ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
The same is occurring with npm as well I have tried to install and set CMake as a classpath though I don’t know why it was throwing an error for cmake at the first try.
If anyone has any idea please help me
React native Version :- 0.69.2 Yarn Version :- v1.22.18
Note:- I have tried using realm 10.19.x it is working and getting installed but I think that there is some issue with the latest version I want to have the latest version of it coz it may have support for react-native-reanimated
Please help Thanks.
Stacktrace & log output
error D:\UzefShaikh\GIT\mobile_app\node_modules\realm: Command failed.
Exit code: 1
Command: prebuild-install --tag-prefix= -r napi || cmake-js build
Arguments:
Directory: D:\UzefShaikh\GIT\mobile_app\node_modules\realm
Output:
prebuild-install warn install self signed certificate in certificate chain
[
'C:\\Program Files\\nodejs\\node.exe',
'C:\\Users\\Uzef762486\\AppData\\Roaming\\npm\\node_modules\\cmake-js\\bin\\cmake-js',
'build'
]
ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
ERR! OMG There is no Visual C++ compiler installed. Install Visual C++ Build Toolset or Visual Studio.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Can you reproduce the bug?
Yes, always
Reproduction Steps
yarn add realm
Version
10.20.x
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Windows 10
Build environment
react-native CLI Yarn package manager
Cocoapods version
1.11.2
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 23 (11 by maintainers)
I’ve just run into this error, seemingly because 10.21.0 was just released an hour ago, but there are no assets associated with the release in GitHub - as a result, the
prebuild-install
script returns nothing, and my machine falls back to runningcmake-js
, which isn’t present on my laptop.@kneth : your guess was correct as the file was not getting download due to some network restrictions, I tried changing Netwrok connection (from wifi to mobile data) it worked like a charm!
The System B is a mac I can install new versions in mac but cannot install then on windows i cannot not tell the node version of mac till monday because of accessibility issue so please give me time till monday i will update you with the version of node on monday
Thanks