node-libstorj icon indicating copy to clipboard operation
node-libstorj copied to clipboard

Support installation on windows

Open braydonf opened this issue 9 years ago • 7 comments

There is most likely going to be an issue on windows when installing, as the downloaded release is a zip file instead of a tarball, and we'll need to switch to use zip command, at https://github.com/Storj/node-libstorj/blob/master/download.js#L47

Would cygwin be used here, and bash scripts would work?

braydonf avatar Oct 04 '17 17:10 braydonf

Issue confirmed on Windows setup.

graphenepay avatar Oct 15 '17 10:10 graphenepay

multiple issues with windows.

  • download/unzip not working
  • not compiling because some linux-only functions being used (access function) and some other.
  • not linking (it seems nettle and some other link fails)

I will work on this recently. Just FYI what I found now.

seekerlee avatar Jan 15 '18 16:01 seekerlee

Do we have a solution for this issue?

dittops avatar Jan 24 '18 03:01 dittops

I got same error using MSYS2 enviroment.

Running npm install github:storj/node-libstorj --save On Windows 10

npm ERR! argv "C:\\msys64\\mingw64\\bin\\node.exe" "C:\\msys64\\mingw64\\lib\\node_modules\\npm\\bin\\npm-cli.js" "install" "github:storj/node-libstorj" "--save"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `node ./download.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'node ./download.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the storj package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./download.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs storj
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls storj
npm ERR! There is likely additional logging output above.

tolstenko avatar Feb 08 '18 15:02 tolstenko

I'm getting the same error on windows 64bit: (is there any solution for this yet? Or when will Storj be stable for windows?)

[email protected] preinstall C:\Users\hunter\Documents\vid\node_modules\storj

node ./download.js Unable to download libstorj for platform: win32 and arch: x64 npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] preinstall: node ./download.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\hunter\AppData\Roaming\npm-cache_logs\2018-03-24T20_59_10_765Z-debug.log

hunterInt avatar Mar 25 '18 17:03 hunterInt

I have the same error too.

l:\gitrepo\keeweb>npm install github:storj/node-libstorj --save

> [email protected] preinstall l:\gitrepo\keeweb\node_modules\storj
> node ./download.js

'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
Unable to download libstorj for platform: win32 and arch: x64
npm WARN [email protected] requires a peer of uglify-js@^2.4.16 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\grunt-appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fs-xattr):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node ./download.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Mr B\AppData\Roaming\npm-cache\_logs\2018-05-30T02_40_21_535Z-debug.log

hAbd0u avatar May 30 '18 03:05 hAbd0u

👋 Hey! Thanks for this contribution. Apologies for the delay in responding!

We've decided to rearchitect Storj, so that we can scale better. You can read more about this decision here. This means that we are entirely focused on v3 at the moment, in the storj/storj repository. Our white paper for v3 is coming very, very soon - follow along on the blog and in our Rocketchat.

As this repository is part of the v2 network, we're no longer maintaining this repository. I am going to close this for now. If you have any questions, I encourage you to jump on Rocketchat and ask them there. Thanks!

RichardLitt avatar Oct 30 '18 10:10 RichardLitt