This is pretty simple.Ģ) Need to either make Rhino work like V8 (really hard) or update the version of "glob" in this projectģ) "tty" and "readline" are surprisingly hard to get right in Trireme. I worked around this last one by editing the file that Sails told me to edit so that it'll stop asking for my input at startup time.ġ) Need to fix the Trireme symlink issue. Trireme doesn't fully support the "tty" and "readline" modules (because it is for running servers and how often do servers prompt for user input)? However Sails does prompt for user input. Third, after I added an "api" to my app it wanted to prompt me at the command-line to ask me what to do. "npm update" to pick up the new module, and then my app works. I worked around this by editing my version of "package.json" for the sails package to specify the latest version of "glob," which works around the problem because the code is very different now. I have never been able to reproduce this outside his own code, but it is a clever enough coding pattern that it confuses Rhino. Second, the (old) version of the "glob" package uses one of isaacs's favorite coding patterns, which is to call a function and then declare it in the same scope later on. I worked around this in my sails app by removing node_modules inside my app dir and re-installing them with npm: Those are fine but there is code in Sails that tries to browse them, and the symbolic links are triggering a Trireme bug I didn't "fix" this but I was able to get the sails app to run under Trireme - but I had to hack three things.įirst of all, the app created using "sails new" contains a bunch of symbolic links in node_modules.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |