blank-lambda-bot icon indicating copy to clipboard operation
blank-lambda-bot copied to clipboard

Gulp deploy broken

Open timbray opened this issue 8 years ago • 5 comments

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 avatar Nov 03 '16 18:11 timbray

@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?

warandpeace avatar Dec 07 '16 03:12 warandpeace

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.

Generic42 avatar May 15 '18 19:05 Generic42

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 avatar Jul 19 '18 20:07 kogden

@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?

warandpeace avatar Jul 19 '18 22:07 warandpeace

@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)

mahibhosain avatar Feb 19 '19 00:02 mahibhosain