If you install asn1.js without the optional dependencies (--no-optional), the bn.js dependency isn't installed but then asn1.js fails to work because it expects it to exist in https://github.com/indutny/asn1.js/blob/master/lib/asn1.js#L3. Either treat is optional or mark it as required.
If you install asn1.js without the optional dependencies (--no-optional), the bn.js dependency isn't installed but then asn1.js fails to work because it expects it to exist in https://github.com/indutny/asn1.js/blob/master/lib/asn1.js#L3. Either treat is optional or mark it as required.