Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Error: EISDIR, read #22

Closed
dts opened this issue Nov 20, 2015 · 5 comments
Closed

Error: EISDIR, read #22

dts opened this issue Nov 20, 2015 · 5 comments

Comments

@dts
Copy link

dts commented Nov 20, 2015

I'm getting this error when I try to run it.

 $ cordova-hcp server
Running server
Checking:  /Users/dstaudigel/yt/app/www
local_url http://localhost:31284
Config { name: 'YogiTunes',
  ios_identifier: 'net.mountainmandan.yogi-tunes',
  android_identifier: 'net.mountainmandan.yogi-tunes',
  update: 'resume',
  content_url: 'http://app.yogi-tunes.com/versions/www',
  release: '2015.11.20-09.50.21' }

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: EISDIR, read

I'm on OSX 10.11, node version v0.10.38 (though the error also occurs with node 4.2.1). I tried to add debugging logging, stack traces, etc. but was stymied because I couldn't find the events.js file that was actually throwing the error.

@dts
Copy link
Author

dts commented Nov 20, 2015

Of note, it works just fine for a fresh ionic project - there must be some directory in my hierarchy that it is not expecting. Unfortunately, there are a lot of directories in my project that aren't in a stock one! Any ideas about where I can hook in to figure out which directory it's bonking on?

@dts
Copy link
Author

dts commented Nov 20, 2015

Figured it out - it was a bower linked dependency. During the hashing process, it incorrectly thinks that a symbolic link will be a file and not a directory.

@nikDemyankov
Copy link
Member

Hmm, as a work around you could either add this symbol link to the ignore list, or if it's content is required - copy that directory to your project.

As I understand, you would like for the CLI client to detect the symbolic links and add their content to the manifest?

@dts
Copy link
Author

dts commented Nov 20, 2015

My workaround was to copy it in, and that works fine (of course it's hacky, but whatever). Yes, I think the ideal behavior should be that it copies the symlinked directory, flat, into the target bundle and the manifest. That way, you can use symlinked dependencies with bower link.

@nordnet-deprecation-bot
Copy link
Contributor

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-hot-code-push-cli anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #79 for more information.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants