haraka / node-address-rfc2821

RFC2821 Email Address parser (from Haraka)
https://www.npmjs.com/package/address-rfc2821
13 stars 6 forks source link

Fix nearleyc grammar #37

Closed sent closed 3 years ago

sent commented 3 years ago

Docker container complaining about grammar file missing, node version is latest

error /usr/local/share/.config/yarn/global/node_modules/address-rfc2821: Command failed.
Exit code: 1
Command: npx -p nearley nearleyc <grammar.ne -o grammar.js
Arguments:
Directory: /usr/local/share/.config/yarn/global/node_modules/address-rfc2821
Output:
npm WARN exec The following package was not found and will be installed: nearley
/usr/local/share/.config/yarn/global/node_modules/nearley/lib/compile.js:25
        for (var i = 0; i < structure.length; i++) {
                                      ^

TypeError: Cannot read property 'length' of undefined
    at Compile (/usr/local/share/.config/yarn/global/node_modules/nearley/lib/compile.js:25:39)
    at StreamWrapper.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/nearley/bin/nearleyc.js:32:17)
    at StreamWrapper.emit (node:events:388:22)
    at finish (node:internal/streams/writable:741:10)
    at processTicksAndRejections (node:internal/process/task_queues:80:21)
npm ERR! code 1
npm ERR! path /usr/local/share/.config/yarn/global/node_modules/address-rfc2821
npm ERR! command failed
npm ERR! command sh -c nearleyc -o grammar.js

npm ERR! A complete log of this run can be found in:

Thanks!

msimerson commented 3 years ago

thanks @sent and @baudehlo. Now published as 1.2.2