File System | Node.js v6.8.1 Documentation
possible install shells :
- node command prompt (msi installer here)
- PowerShell
- Bash on Ubuntu on Windows (inverse-WINE?)
- Git Bash (MINGW64 based)
- 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
- admin PowerShell:
- [Option 2]: manual install :
- ... found that windows-build-tools had already done manual steps
- [Option 1]: installing windows-build-tools
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"
???
- choose
-
download NSIS
- http://nsis.sourceforge.net/Download/
export PATH=$PATH:"/cygdrive/c/Program Files (x86)/NSIS"
(in cygwin)
getting sodium-prebuilt
working:
-
all of the above
-
copied dll :
cp deps/build/lib/libsodium.dll build/Release/
-
npm link
in the node-sodium-prebuilt folder,npm link sodium-prebuilt
https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options