sequelize-auto-migrations icon indicating copy to clipboard operation
sequelize-auto-migrations copied to clipboard

process.env.PWD not run on windows

Open welberty opened this issue 7 years ago • 1 comments

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

welberty avatar Nov 14 '17 13:11 welberty

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

didac-wh avatar Dec 04 '17 16:12 didac-wh