VirgilSecurity / virgil-crypto-javascript

Virgil JavaScript Crypto Library is a high-level cryptographic library that allows you to perform all necessary operations for secure storing and transferring data and everything required to become HIPAA and GDPR compliant.
https://developer.virgilsecurity.com/docs/how-to#cryptography
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

Failed to download Virgil Crypto Node.js Addon - which node version is supported by virgil-crypto? #60

Closed atereshkov closed 5 years ago

atereshkov commented 5 years ago

Hey. Which version of node is supported by the virgil-crypto package? And is it possible to run this package on Firebase Cloud Functions with node 8?

I saw this issue https://github.com/VirgilSecurity/virgil-crypto-javascript/issues/7 and @vadimavdeev wrote

Currently, only versions 4.x - 6.x are supported.

So what about current situation?

atereshkov commented 5 years ago

OK so I've tried it on my own and it seems like it's working with node 8 on Firebase CF (package.json):

  "engines": {
    "node": "8"
  },

On my local machine I've installed nvm and used node v8.10.0:

  1. Install nvm
  2. Install node 8.x: nvm use 8.10.0
  3. If you get "nvm is not compatible with the npm config "prefix" option: currently set to "/Users/user/.npm-global", then run: nvm use --delete-prefix v8.10.0
  4. Then re-install virgil-crypto: npm install --save virgil-crypto
vadimavdeev commented 5 years ago

The latest stable version of this library - v3.2.6 currently - supports Node.js from version 4 to 11. There is a pre-release version - v4.0.0-alpha - that is in development and supports Node.js from version 8 to potentially any newer version due to the use of WebAssembly.

atereshkov commented 5 years ago

Great to hear that @vadimavdeev, спасибо! :)

Btw, feel free to close this issue as I just posted some info on how to run it when you have node > latest supported version atm.