Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Error: Algorithm "sha1" not supported. supported values: passthrough #128

Closed
ccorcos opened this issue Nov 26, 2016 · 5 comments
Closed

Comments

@ccorcos
Copy link

ccorcos commented Nov 26, 2016

Module build failed: Error: Algorithm "sha1"  not supported. supported values: passthrough
  at applyDefaults (/Users/chet/Code/doug/packages/doug/node_modules/object-hash/index.js:89:11)
  at objectHash (/Users/chet/Code/doug/packages/doug/node_modules/object-hash/index.js:31:13)
  at Object.module.exports (/Users/chet/Code/doug/packages/doug/node_modules/eslint-loader/index.js:155:20)

No idea what this is all about. Any ideas? I'm using Yarn if that makes a difference...

@peternewnham
Copy link
Contributor

What operating system and version of node are you using? The error appears to be the node crypto module not having any hashes to use (including sha1). Do you get any output when running crypto.getHashes() in the node interactive shell?

@ccorcos
Copy link
Author

ccorcos commented Nov 28, 2016

All seems to be good. I'm on OS X Yosemite.

~ ❯❯❯ node --version
v6.3.1
~ ❯❯❯ node
> crypto.getHashes()
[ 'DSA',
  'DSA-SHA',
  'DSA-SHA1',
  'DSA-SHA1-old',
  'RSA-MD4',
  'RSA-MD5',
  'RSA-MDC2',
  'RSA-RIPEMD160',
  'RSA-SHA',
  'RSA-SHA1',
  'RSA-SHA1-2',
  'RSA-SHA224',
  'RSA-SHA256',
  'RSA-SHA384',
  'RSA-SHA512',
  'dsaEncryption',
  'dsaWithSHA',
  'dsaWithSHA1',
  'dss1',
  'ecdsa-with-SHA1',
  'md4',
  'md4WithRSAEncryption',
  'md5',
  'md5WithRSAEncryption',
  'mdc2',
  'mdc2WithRSA',
  'ripemd',
  'ripemd160',
  'ripemd160WithRSA',
  'rmd160',
  'sha',
  'sha1',
  'sha1WithRSAEncryption',
  'sha224',
  'sha224WithRSAEncryption',
  'sha256',
  'sha256WithRSAEncryption',
  'sha384',
  'sha384WithRSAEncryption',
  'sha512',
  'sha512WithRSAEncryption',
  'shaWithRSAEncryption',
  'ssl2-md5',
  'ssl3-md5',
  'ssl3-sha1',
  'whirlpool' ]

@MoOx
Copy link
Contributor

MoOx commented Nov 28, 2016

I guess this is more an object-hash issue?

@ccorcos
Copy link
Author

ccorcos commented Nov 30, 2016

Perhaps... I really have no idea either. I'll let you know if I figure it out though.

@ccorcos
Copy link
Author

ccorcos commented Dec 2, 2016

figured it out here puleos/object-hash#41

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants