Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.
Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.
Replace
mysql-clientwith whichever mysql package you are using
| ... | |
| "configuration": { | |
| "request": "launch", | |
| "name": "Debug mocha Test", | |
| "type": "node", | |
| "program": "${workspaceRoot}/node_modules/mocha/bin/mocha", | |
| "env": { | |
| "NODE_ENV": "test" | |
| }, | |
| "args": [ |
| import * as asn1js from 'asn1js'; | |
| import { getCrypto, getAlgorithmParameters, CertificationRequest, AttributeTypeAndValue } from 'pkijs/build' | |
| import { arrayBufferToString, toBase64 } from 'pvutils'; | |
| //https://github.com/PeculiarVentures/PKI.js/blob/31c10e9bb879cac59d710102adf4fd7bd61cd66c/src/CryptoEngine.js#L1300 | |
| const hashAlg = 'SHA-256' | |
| const signAlg = 'ECDSA' | |
| /** | |
| * @example | |
| * createPKCS10({ enrollmentID: 'user1', organizationUnit: 'Marketing', organization: 'Farmer Market', state: 'M', country: 'V' }) |