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

Using relative cacheDirectory fails. #80

Open
reggi opened this issue Nov 29, 2017 · 0 comments
Open

Using relative cacheDirectory fails. #80

reggi opened this issue Nov 29, 2017 · 0 comments

Comments

@reggi
Copy link

reggi commented Nov 29, 2017

Im getting this error

Error: Cannot find module './storage/meta.json'

I set the cache dir to the storage folder int the CWD

cacheDirectory: './storage'

Here's the line:

meta = require(homePath + '/meta.json');

So I have to set this in the config:

cacheDirectory: path.resolve(process.cwd(), './storage/'+process.env.ID),

Not a big deal just want to document it here.

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

1 participant