keichi / binary-parser

A blazing-fast declarative parser builder for binary data
MIT License
868 stars 136 forks source link

Fix module not found error when running the examples #102

Closed keichi closed 5 years ago

keichi commented 5 years ago
internal/modules/cjs/loader.js:626
    throw err;
    ^

Error: Cannot find module '../lib/binary_parser'
Require stack:
- /Users/keichi/Projects/private/binary-parser/example/tcp.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:623:15)
    at Function.Module._load (internal/modules/cjs/loader.js:527:27)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/Users/keichi/Projects/private/binary-parser/example/tcp.js:1:14)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:837:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/keichi/Projects/private/binary-parser/example/tcp.js' ]
}