Closed JLKM closed 6 years ago
Sorry, I'm not on windows. I'll look at this in a bit, but in the mean time, I'd check out bcrypt as a possible alternative to password hashing.
Argon2 also won't install on Ubuntu 16.04 LTS with node 8.4.0/npm 5.3.0, so I'll have to continue looking out. This is a real pity, since you've hit the right stack with MongoDB/Express/Nuxt incl. SSR.
root@jlkm:/var/www/node# cd vueniversetest
root@jlkm:/var/www/node/vueniversetest# npm install
> argon2@0.16.1 install /var/www/node/vueniversetest/node_modules/argon2
> node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/local/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.0-92-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/node/vueniversetest/node_modules/argon2
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN ajv-keywords@2.1.0 requires a peer of ajv@>=5.0.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! argon2@0.16.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the argon2@0.16.1 install 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! /root/.npm/_logs/2017-08-24T07_19_20_285Z-debug.log
root@jlkm:/var/www/node/vueniversetest#
Im running into the exact same issue on Windows 10. Any update would be awesome
Updated the password hashing solution to bcryptjs, which is written in pure JavaScript. Should work fine for Windows out of the box. Let me know if you have any more problems.
One solution that I came across, install below tools: npm install --global --production windows-build-tools https://github.com/nfroidure/ttf2woff2/issues/28
I was looking forward to testing this awesome library due to its combination of MongoDB, Express, Nuxt and even SSR. But I'm not able to get i up and running on my setup, which is:
Some suspects:
npm install --save argon2
but install didn't work)Does Argon2 simply not run on Windows: https://github.com/ranisalt/node-argon2/issues/34
I'll leave the full log to you - and hope the best: