Node: Cant build a working version v10.11.0 on windows

Created on 13 Jan 2019  路  7Comments  路  Source: nodejs/node

Hi. I'm tring to compile node v10.11.0 on windows 10. Downloaded official source and followed this tools requirements (https://github.com/nodejs/node/blob/v10.11.0/tools/bootstrap/README.md) . The compilations works good but node result dosent work (whe I run it simpy exit without any message). Tried in a second dev virtual machine but with the same results. Any idea on what I doing wrong?

build question windows

Most helpful comment

The exe available here: https://nodejs.org/dist/v10.11.0/ seems to be working. The CI when building Node uses vcbuild release, you can check if building Node like that fixes your issue.

All 7 comments

Make sure you have the latest MSVS compiler.
See: https://github.com/nodejs/help/issues/1487#issuecomment-420437062

I have updated MSVS and Windows and rebuilded but with no luck. The same machine can successfully build a working version 9.7.0 (tested). But if I checkout v10.11.0 the builded node crash immediatly.
For testing on a clean Windows I'm using an official MS dev machine.
https://developer.microsoft.com/en-us/windows/downloads/virtual-machines

What I have done:

  • Downloade MS VM (I'm using Virtual Box)
  • Update windows (from windows update) & visual studio components (from visual studio installer)
  • Run boxstarter (https://github.com/nodejs/node/blob/v10.11.0/tools/bootstrap/README.md)
  • Check again for updates
  • Clone github node repository
  • Checkout v10.11.0
  • vcbuild.exe

The system build without errors. The resulting node executable crash immediately on run.

Tried to reproduce the issue

  • Downloaded the virtaul machine from your link (for VirtualBox)
  • Updated Windows and MSVS
  • Faced error while running the Boxstarter script (related to invalid Windows license and the script is aborted)

What is the Node.js exit code (type echo %errorlevel% into the cmd after node crashes)?
Can you please build the debug build (run vcbuild.bat debug) and share it here.

@ftaiolivista Can reproduce. This is already fixed in v10.15.0, which compiles and runs fine.

Since this is already fixed in newer Node version, I'm going to close this issue. Feel free to reopen it if it still does not work for you.

Douu... I'll want to work with the same node version of Electron JS. I think I'll wait next electron release.

The exe available here: https://nodejs.org/dist/v10.11.0/ seems to be working. The CI when building Node uses vcbuild release, you can check if building Node like that fixes your issue.

The exe available here: https://nodejs.org/dist/v10.11.0/ seems to be working. The CI when building Node uses vcbuild release, you can check if building Node like that fixes your issue.

Great... with vcbuild release it works. Maybe specified in documentation :))

Was this page helpful?
0 / 5 - 0 ratings