robbestad / Rantjs

Procedurally generate text with JavaScript
220 stars 10 forks source link

Cannot find module 'en_US' #3

Closed brekk closed 9 years ago

brekk commented 9 years ago

When I attempt to use any of the repeat syntax ([rep:3]), I receive this error:

Error: Cannot find module 'en_US'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at braceParser (/Users/brekk/Servers/test/node_modules/rantjs/braceParser.js:43:17)

My example code:

var rant = require('rantjs');
var x = rant('[rep:8]{<adj nsfw>}');
robbestad commented 9 years ago

Yep, can confirm this. I published a new build on NPM now (0.9.2) which takes care of this!