-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Error: Cannot find module './core/yargs' when running migrations #12913
Comments
Never mind, it seems to be a problem with how AWS CodeBuild install packages. I've just moved the |
what stage did you move npm install to? |
I had a |
Got it, thanks for your answer, it helped a lot! |
The problem exists because AWS CodeBuild archives the artifacts in such a way which converts symlinks into regular files with contents.
TLDR: Don't run |
Had the same error with Azure DevOps. The solution of @lazartravica worked for us too. |
Awesome stuff, solved the issue for me. Cheers! |
@lazartravica answer is correct.
|
Issue Description
Getting
Error: Cannot find module './core/yargs'
from AWS CodeDeploy when runningsequelize db:migrate
What are you doing?
Running migrations as the last step on a CI/CD pipeline.
What do you expect to happen?
Migrations to run as they do in the local environment.
What is actually happening?
The deployment task stops due to the error importing a module on sequelize.
Additional context
The
run_migrations
script is a simple:where
migrate
is set assequelize db:migrate
on package.json scripts.All the other steps and scripts on the pipeline are working just fine, the same for the system itself.
Since there are no issues running migrations locally, I wonder what am I missing on the production env.
Environment
Issue Template Checklist
How does this problem relate to dialects?
Would you be willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: