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

gyp ERR! stack Error: read ECONNRESET

Open spursy opened this issue 6 years ago • 1 comments

When I build the docker image in the server, I have the followed issue. I suspect that is due to internet issue.

  • My server has internet restriction, what ip should I add into white ip list.
  • My server is linux
> [email protected] install /home/node/bi-nodesrv-doctor/node_modules/scrypt
> node-gyp rebuild

gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: read ECONNRESET
gyp ERR! stack     at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
gyp ERR! System Linux 4.15.0-43-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 /home/node/bi-nodesrv-doctor/node_modules/scrypt
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN [email protected] requires a peer of mocha@>=1.18 <6 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

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

spursy avatar Mar 01 '19 09:03 spursy

@spursy this repo is no longer maintained: scrypt-kdf is a very close replacement, providing a (promise-based) zero-dependency wrapper around the native Node.js crypto OpenSSL implementation of scrypt, which you might be able to use as a replacement for the .kdf() / .verifyKdf() methods.

chrisveness avatar Mar 01 '19 15:03 chrisveness