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

process.env.PWD not run on windows #8

Open
welberty opened this issue Nov 14, 2017 · 1 comment
Open

process.env.PWD not run on windows #8

welberty opened this issue Nov 14, 2017 · 1 comment

Comments

@welberty
Copy link

Change 'process.env.PWD' to 'process.env.PWD || process.cwd()' on runmigration.js and makemigration.js to fix problem

@didac-wh
Copy link

didac-wh commented Dec 4, 2017

My workaround was to add the env var when calling the program through cmd:
set PWD=C:\Users\[Whatever_path]&& node .\node_modules\sequelize-auto-migrations\bin\makemigration --name test

Note that there's no space between the path and the "&&". That's important

Not the ideal solution, but it lets you avoid editing the lib code

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

2 participants