Neon: Build fails on Windows

Created on 23 Jul 2018  路  3Comments  路  Source: neon-bindings/neon

I have installed all the dependencies and tried to run a compile a basic example, but i always get the following error:
thread 'main' panicked at 'Couldn't find node_root_dir in node-gyp output.', libcore\option.rs:914:5

I'm on Node Version v10.7.0 x64, on Windows 10 x64.

Most helpful comment

For future people who run into the same error, these instructions resolved the situation for me:

From a powershell/command prompt as admin:

npm install --global --production windows-build-tools

All 3 comments

After adding some debug output to the build script, I fixed the problem. It was a misconfiguration in npm config. I accidently set the config "target" to the target triple. node gyp reads this config as target node version.

After cleaning up my node config everything worked as expected.

For future people who run into the same error, these instructions resolved the situation for me:

From a powershell/command prompt as admin:

npm install --global --production windows-build-tools

Encountering this issue even after the above mentioned fix by @mitchhentges

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crazyfrozenpenguin picture crazyfrozenpenguin  路  3Comments

jjpe picture jjpe  路  6Comments

manuel2258 picture manuel2258  路  5Comments

staltz picture staltz  路  5Comments

thehappycoder picture thehappycoder  路  3Comments