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

Yarn install doesn't work and results in failed install. #832

Closed
1 of 3 tasks
verschaevesiebe opened this issue Mar 25, 2024 · 1 comment
Closed
1 of 3 tasks

Yarn install doesn't work and results in failed install. #832

verschaevesiebe opened this issue Mar 25, 2024 · 1 comment

Comments

@verschaevesiebe
Copy link

verschaevesiebe commented Mar 25, 2024

I'm submitting a...

  • Bug report <
  • Feature request
  • Question

Current behavior

Can't currently install the package with YARN as it gives an error on node-gyp. (visual studio reference) as weird as it sounds.

Expected behavior

Install correctly with yarn and find db-migrate in terminal

Environment


db-migrate version: latest

Additional information:
- Node version: 18 & 20
- Platform:  Windows
@abz98
Copy link

abz98 commented Apr 6, 2024

The db-migrate-mysql and db-migrate-sqlite3 packages need Python and node-gyp for compilation because they rely on native modules. Unlike Node.js, Yarn doesn't handle compilation on its own and depends on system dependencies instead.

To support installation via Yarn, it's recommended to add a pre-install script in the package.json file. This script would ensure that the necessary system dependencies are installed before attempting to install the packages.

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