You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're probably aware of this and will fix it for the next release but I'll create an issue just in case.
EG doesn't seem to run correctly after installing from master (wanted to try out the new require: .module syntax).
npm install -g breuleux/earl-grey && earl
Install succeeds but running the earl command gives the following error:
Error: Cannot find module '../lib6/run'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Users/dave/.nvm/versions/io.js/v2.0.1/lib/node_modules/earlgrey/bin/earl:4:5)
at Module._compile (module.js:431:26)
at Object.Module._extensions..js (module.js:449:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:472:10)
The text was updated successfully, but these errors were encountered:
Right. The up-to-date JavaScript for the compiler is not under version control. Only an older version is stored in bootstrap. To produce the library you need to run bin/bootstrap 2. That command will compile the current code in src with bootstrap into temp_bootstrap_0, then with temp_bootstrap_0 to produce temp_bootstrap_1, then finally with temp_bootstrap_1 to produce lib6 (basically, it goes old:old => old:new => new:new => new:new, the last step is needed to make sure the new compiler doesn't mess up when it compiles itself). It takes one or two minutes to run.
I could put something like if [ ! -d 'lib6' ]; then bin/bootstrap 2; fi as an install hook, but I have no idea what that does if someone runs Windows.
Does it work if you clone the repo and run npm install -g? I'm reading npm install runs the prepublish hooks when you run it locally.
That makes sense. Yeah, an install hook would be useful, probably best to make it a node script for compatibility, it only needs to be a few lines anyway.
You're probably aware of this and will fix it for the next release but I'll create an issue just in case.
EG doesn't seem to run correctly after installing from master (wanted to try out the new
require: .module
syntax).npm install -g breuleux/earl-grey && earl
Install succeeds but running the earl command gives the following error:
The text was updated successfully, but these errors were encountered: