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

wrong place of config.json when not installing to c:\ #1193

Closed
misterboo opened this issue Jan 19, 2012 · 5 comments
Closed

wrong place of config.json when not installing to c:\ #1193

misterboo opened this issue Jan 19, 2012 · 5 comments
Labels
Milestone

Comments

@misterboo
Copy link

When you install it to another drive than c:\

it search in the wrong drive for config.json

Error: ENOENT, no such file or directory
'D:\Dokumente und Einstellungen\andreas.tilemill\config.json'

should be looking in

C:\Dokumente und Einstellungen\andreas.tilemill\config.json

@springmeyer
Copy link
Member

going to take a look at fixing this after release.

@springmeyer
Copy link
Member

@misterboo - curious - are you admin on your machine? (see #1200)

@misterboo
Copy link
Author

no ... i just installed it to d:\ ...

it seems tilemill looks on the Installdrive for config.json

if i install to e:\ it looks there for config.json

But anyway #1200 could be the same issue ... as i now as administrator you don't have an own userdirectory

so tilemill try to find config.json in the root C:.tilemill\config.json

@misterboo
Copy link
Author

I guess the issue is HOMEPATH

this resove in Windows to \Dokumente und Einstellungen\andreas

that means without the Driveletter

as Administrator HOMEPATH is set to ""

probably tilemill or node takes the Driveletter from the drive tilemill is startet ...

probably you should use USERPROFILE in index.js

process.env.HOME = process.env.USERPROFILE; 

@springmeyer
Copy link
Member

@misterboo - thanks USERPROFILE seems to work well (committed), avoiding the need to use HOMEDRIVE + HOMEPATH.

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