Skip to content

missing templates when installed via npm #2

Closed

Description

@es128

npm install sebmck/6to5

λ node
> to5 = require('6to5')
Error: ENOENT, no such file or directory '/Code/6to5test/node_modules/6to5/lib/6to5/templates'
    at Object.fs.readdirSync (fs.js:654:18)
    at Object.<anonymous> (/Code/6to5test/node_modules/6to5/lib/6to5/util.js:201:13)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Code/6to5test/node_modules/6to5/lib/6to5/transform.js:4:16)
    at Module._compile (module.js:456:26)

https://github.com/sebmck/6to5/blob/master/.npmignore#L5

Seems as if your intention is to only include them for dev/test, but util needs to be fixed to not puke when they're absent.

Activity

  1. sebmck commented on Oct 2, 2014

    @sebmck
    Contributor

    I accidentally ran npm publish instead of make publish. This is to avoid parsing all the templates in production. Thanks for your issues, much appreciated!

  2. added a commit that references this issue on Oct 8, 2017
  3. added a commit that references this issue on Jan 11, 2018
  4. added
    outdated
    on May 4, 2018
  5. locked as resolved and limited conversation to collaborators on May 4, 2018
  6. added a commit that references this issue on Nov 14, 2019
    536f981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Has PRoutdated

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions