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

"/Users/js already exists. Do you want to overwrite it?" #232

Closed
jsandlund opened this issue Feb 2, 2016 · 8 comments
Closed

"/Users/js already exists. Do you want to overwrite it?" #232

jsandlund opened this issue Feb 2, 2016 · 8 comments
Labels

Comments

@jsandlund
Copy link

I keep running into errors when running generate commands. I'm first prompted with a cryptic this file already exists message (can't find this file anywhere):

/Users/js already exists. Do you want to overwrite it? [yn]:

If I say yes, it throws an EAccess error.

image

If I sudo my way through this permission error it appears to work but no markup is generated. I've tried uninstalling & re-installing to no avail. Thoughts on what's happening?

@chrisbutler
Copy link
Contributor

@jsandlund that's bizarre. the paths it's using don't make sense.

can you try creating a project without dashes in the name, and see if it still behaves the same way?

@jsandlund
Copy link
Author

Strange. It's trying to write to the same unknown path /Users/js/ when I run iron create.

image

@jsandlund
Copy link
Author

Super strange. Played around a bit more. Appears to only run into an issue when creating the .js file. Only potential cause I can think off: maybe something to do with my username being 'jsandlund', which creates a side effect when something is being parsed.

image

@chrisbutler chrisbutler added the bug label Feb 4, 2016
@chrisbutler
Copy link
Contributor

that is quite possible, i'll try to test out some stuff when i get a chance

@jsandlund
Copy link
Author

Yep, confident my alias is the root cause. Changed it last night to not be prefixed with js, same environment, and everything worked fine. I poked around the iron-cli's lib files to see if I could find the culprit but no luck. (Apologies, my node.js is super weak.)

@chrisbutler
Copy link
Contributor

@jsandlund in that case, i'm pretty sure the issue is with rewriteSourcePathForEngine or rewriteDestinationPathForEngine and the regex-based replacing that is happening in https://github.com/iron-meteor/iron-cli/blob/master/lib/tools/file_system.js

@jsec
Copy link

jsec commented Mar 16, 2016

Can confirm the alias hypothesis as well. iron create appname fails with the same error for me, with username "jsec"

chrisbutler added a commit that referenced this issue Jan 12, 2017
@chrisbutler
Copy link
Contributor

@jsandlund @jsec this is fixed in 1.8.0 !

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

No branches or pull requests

3 participants