Error: ENOENT, no such file or directory '/my_project/node_modules/gluejs/lib/src'
at Object.fs.statSync (fs.js:524:18)
at Group.include (/my_project/node_modules/gluejs/lib/group.js:21:26)
at Array.forEach (native)
at Group.include (/my_project/node_modules/gluejs/lib/group.js:19:9)
at Renderer.include (/my_project/node_modules/gluejs/lib/glue.js:42:55)
at repl:1:30
at REPLServer.self.eval (repl.js:111:21)
at rli.on.e (repl.js:260:20)
at REPLServer.self.eval (repl.js:118:5)
at Interface.<anonymous> (repl.js:250:12)
What Did You Expect?
I expected .basepath('./src'), .include('./src'), and fs.writeFile('./assets/insistent_cat.js', txt); all to be relative to the current working directory.
What Happened?
I've installed
gluejs
locally:Then I ran the following in
node
(with/my_project/
as the working directory):I get the following error:
What Did You Expect?
I expected
.basepath('./src')
,.include('./src')
, andfs.writeFile('./assets/insistent_cat.js', txt);
all to be relative to the current working directory.