Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp deploy broken #3

Open
timbray opened this issue Nov 3, 2016 · 5 comments
Open

Gulp deploy broken #3

timbray opened this issue Nov 3, 2016 · 5 comments

Comments

@timbray
Copy link

timbray commented Nov 3, 2016

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.

@warandpeace
Copy link

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

@Generic42
Copy link

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.

@kogden
Copy link

kogden commented Jul 19, 2018

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

@warandpeace
Copy link

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

@mahibhosain
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants