From 6e51f2d6087fd05b69daa88323f1fbd9a94bd781 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 15 May 2018 09:28:09 +0300 Subject: [PATCH] rebuild doc for NW.js (#1229) refers to https://github.com/lovell/sharp/issues/1223 --- docs/rebuild from NW.js.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/rebuild from NW.js.md diff --git a/docs/rebuild from NW.js.md b/docs/rebuild from NW.js.md new file mode 100644 index 00000000..a82da3f2 --- /dev/null +++ b/docs/rebuild from NW.js.md @@ -0,0 +1,8 @@ +# Rebuild +* after installing the Sharp module with CLI cd into the `node-modules/sharp` +* rebuild `nw-gyp rebuild --target=[your nw version] --arch=[x64,ia32]`without brackets, [for more details](http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/) +* run `node node_modules\sharp\install\dll-copy` +## Prerequisites +* node +* nw-gyp +* sharp