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

Помилка міграції #4

Open
kant2002 opened this issue Mar 28, 2024 · 1 comment
Open

Помилка міграції #4

kant2002 opened this issue Mar 28, 2024 · 1 comment

Comments

@kant2002
Copy link

be-gateway-service> npx ts-node --project migrations/tsconfig.json node_modules/migrate-mongo/bin/migrate-mongo.js up -f migrate-mongo-config.ts
Collection migrations does not exist. Skipping js files conversion.
'mongoimport' is not recognized as an internal or external command,
operable program or batch file.
'mongoimport' is not recognized as an internal or external command,
operable program or batch file.
ERROR: Could not migrate up 20220505111351-add-faq-for-user.ts: Command failed: mongoimport --uri "mongodb://localhost:27017/diia-gateway?" --collection=faqs --file=D:\d\kant\GitHub\diia\be-gateway-service\faq.json
'mongoimport' is not recognized as an internal or external command,
operable program or batch file.
 Error: Command failed: mongoimport --uri "mongodb://localhost:27017/diia-gateway?" --collection=faqs --file=D:\d\kant\GitHub\diia\be-gateway-service\faq.json
'mongoimport' is not recognized as an internal or external command,
operable program or batch file.
@kant2002
Copy link
Author

Після встановлення Database tools із https://www.mongodb.com/try/download/database-tools та додавання bin папки до шляху, міграція запустилася

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