Skip to content

Instantly share code, notes, and snippets.

@mixmix
Created October 18, 2016 08:57
Show Gist options
  • Save mixmix/7cfad548b1358ad7b38f1e937895afd8 to your computer and use it in GitHub Desktop.
Save mixmix/7cfad548b1358ad7b38f1e937895afd8 to your computer and use it in GitHub Desktop.
windows sodium-prebuilt build env notes

File System | Node.js v6.8.1 Documentation

possible install shells :

leveldown

  • depends : node-gyp
    • [Option 1]: installing windows-build-tools
      • admin PowerShell: npm install --global --production windows-build-tools
      • didn't work
      • tried npm install --global windows-build-tools
    • [Option 2]: manual install :
      • ... found that windows-build-tools had already done manual steps

patchwork-election

  • npm install in PowerShell - fails on sodium-prebuilt (no make)

sodium-prebuilt (repo : node-sodium-prebuilt)

  • cloned, errored npm installing in Powershell - no make command
  • installed without apparent errors in Git Bash

patchwork-election

  • npm install in GitBash - fails on sodium-prebuilt (no make)

Peter's approach:

  • install cygwin : https://cygwin.com/install.html

    • choose make, libtool, m4, automake (wrapper + 1.15), gcc (all gcc under devel) to install
    • clone repo (note you might have to type url manually because ? I don't know, some unicode chars)
    • npm i
    • export INC="-I/usr/include" ???
  • download NSIS

getting sodium-prebuilt working:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment