blank-lambda-bot
blank-lambda-bot copied to clipboard
Gulp deploy broken
The problem has to do with the "dist" directory. Error output:
npm ERR! enoent ENOENT: no such file or directory, open '/Users/timbray/dev/atbot/blank-lambda-bot/dist/botfiles' npm ERR! enoent ENOENT: no such file or directory, open '/Users/timbray/dev/atbot/blank-lambda-bot/dist/botfiles'
Apologies in advance if I missed something obvious.
@timbray
Hey Tim,
This may not actually be the full solution (I've run into a new error) but what worked for me was updating the botfiles dependency line to have "file:botfiles"
replaced with the absolute path to the directory on my hard drive. I'm not sure why using a relative path "./botfiles"
fails or the way npm sets it up when you run the npm install command as directed by the instructions though.
Give it a go?
So I also ran into this issue and was able to work around it by inserting the absolute path as recommended above. However post that I get to "gulp deploy" and it fails with: `[13:14:58] Finished 'node-mods' after 5.97 s [13:14:58] Starting 'zip'... events.js:167 throw er; // Unhandled 'error' event ^
Error: EISDIR: illegal operation on a directory, read Emitted 'error' event at: at DestroyableTransform.onerror (/Users/chris.murdock/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:558:12) `
I've tried a number of solutions with no luck.
when I run 'gulp deploy' I get "Could not install from "botfiles" as it does not contain a package.json file."
However my ./botfiles and dist/botfiles both have package.json in them
@kogden Sounds like you might have botfiles
listed in your main package.json, which might be syntactically incorrect? Can you share the relevant line from package.json?
Also, did you run npm install before running gulp deploy?
@Generic42 I've run into the same issue as you after using the full path to the botfiles directory instead of "file.botfiles" in my package.json file. Do you have any idea how to proceed? Would it have anything to do with the fact that a lot of the packages used are deprecated? Attached is my error:
[16:03:32] Finished 'node-mods' after 15 s [16:03:32] Starting 'zip'... events.js:167 throw er; // Unhandled 'error' event ^ Error: EISDIR: illegal operation on a directory, read Emitted 'error' event at: at DestroyableTransform.onerror (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_readable.js:558:12) at DestroyableTransform.emit (events.js:182:13) at DestroyableTransform.EventEmitter.emit (domain.js:442:20) at onwriteError (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:250:10) at onwrite (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:268:5) at WritableState.onwrite (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:106:5) at afterTransform (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:104:5) at TransformState.afterTransform (/Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:79:12) at /Users/mahib/Documents/blank-lambda-bot/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:9:14 at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:406:12)