realm@2.21.1 install: `node-pre-gyp install --fallback-to-build`
See original GitHub issueGoals
npm install --save realm
Expected Results
npm install --save realm success
Actual Results
> realm@2.21.1 install D:\lzzwork\react_native\swpaam\node_modules\realm
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://static.realm.io/node-pre-gyp/2.21.1/realm-v2.21.1-node-v59-win32-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for realm@2.21.1 and node@9.5.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp)
Warning: Missing input files:
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\lib\browser\util.jsscripts\build-node-pre-gyp.ps1
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\src\object-store\src\descriptor_ordering.hpp
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\src\object-store\src\util\compiler.hpp
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\scripts\test.sh
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\scripts\set-version.sh
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\scripts\changelog-header.sh
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\scripts\publish.sh
D:\lzzwork\react_native\swpaam\node_modules\realm\build\..\src\object-store\src\util\time.hpp
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [D:\lzzwork\react_native\swpaam\node_modules\realm\build\OpenS
SL.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [D:\lzzwork\react_native\swpaam\node_modules\realm\build\scrip
ts.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 bui
ld tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [D:\lzzwork\react_native\swpaam\node_modules\realm\build\vendo
red-realm.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\fade\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:160:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\fade\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\lzzwork\\react_native\\swpaam\\node_modules\\realm\\compiled\\node-v59_win32_x64\\realm.node" "--module_name=realm" "--module_path=D:\\lzzwork\\react_native\\swpaam\\node_modules\\realm\\compiled\\node-v59_win32_x64" "--napi_version=2" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v59"
gyp ERR! cwd D:\lzzwork\react_native\swpaam\node_modules\realm
gyp ERR! node -v v9.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\Program Files\nodejs\node.exe C:\Users\fade\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\lzzwork\react_native\swpaam\node_modules\realm\compiled\node-v59_win32_x64\realm.node --module_name=realm --module_path=D:\lzzwork\react_native\swpaam\node_modules\realm\compiled\node-v59_win32_x64 --napi_version=2 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v59' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\lzzwork\react_native\swpaam\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:160:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Windows_NT 10.0.17134
node-pre-gyp ERR! command "D:\\Program Files\\nodejs\\node.exe" "D:\\lzzwork\\react_native\\swpaam\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\lzzwork\react_native\swpaam\node_modules\realm
node-pre-gyp ERR! node -v v9.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
Failed to execute 'D:\Program Files\nodejs\node.exe C:\Users\fade\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\lzzwork\react_native\swpaam\node_modules\realm\compiled\node-v59_win32_x64\realm.node --module_name=realm --module_path=D:\lzzwork\react_native\swpaam\node_modules\realm\compiled\node-v59_win32_x64 --napi_version=2 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v59' (1)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! realm@2.21.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the realm@2.21.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\fade\AppData\Roaming\npm-cache\_logs\2018-12-18T14_47_56_189Z-debug.log
Version of Realm and Tooling
- Realm JS SDK Version: realm v2.21.1
- Node or React Native: node v9.5.0 & React Native v0.57.8 & npm v6.4.1
- Client OS & Version: windows 10
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:22 (4 by maintainers)
Top Results From Across the Web
`node-pre-gyp install --fallback-to-build` failed during MeanJS ...
i have tried upgrading node-gyp: sudo npm install -g node-gyp. It worked for me. I find the solution here, I hope it can...
Read more >@xprofiler/node-pre-gyp - npm
@mapbox/node-pre-gyp makes it easy to publish and install Node.js C++ ... You can pass --fallback-to-build=false to override the option as ...
Read more >node-pre-gyp install | The AI Search Engine You Control
For a full example see node-addon-example's index.js. 4) Build and package your app. Now build your module from source: npm install --build-from-source The ......
Read more >`node-pre-gyp install --fallback-to-build` on Linux - YouTube
How to install bcrypt on Windows and Linux The steps are as follows : Install stable version of node withsudo npm cache clean...
Read more >node-pre-gyp - GitHub Pages
The scripts install property should specify node-pre-gyp install . The --fallback-to-build argument instructs node-pre-gyp to build the binary on the client ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah If you install the latest version of node then it will clearly work. As Realm uses latest version of node. Go for this link to download node : https://nodejs.org/en/download/
download: newest version node : https://nodejs.org/en/download/ After that install: sudo npm install realm --allow-root=true --unsafe-perm=true