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

Missing yarn dependency? #93

Open
Jimbly opened this issue Dec 12, 2024 · 1 comment · May be fixed by #95
Open

Missing yarn dependency? #93

Jimbly opened this issue Dec 12, 2024 · 1 comment · May be fixed by #95

Comments

@Jimbly
Copy link

Jimbly commented Dec 12, 2024

package.json install script references yarn, but none of the dependencies install it, should it be added there? Running npm i minidump as instructed in the README generates the following error:

npm error command sh -c yarn submodule && node build.js
npm error sh: 1: yarn: not found

Running npm i yarn before trying to install minidump seems to help ([email protected] for [email protected] worked for me at the time of writing this report).

Happy to make a PR if it's as simple as adding it to package.json (but I admit I know nothing about yarn and if there's some reason you wouldn't want to do that as there often seems to be with overenthusiastic build systems ^_^)

@Jimbly
Copy link
Author

Jimbly commented Dec 12, 2024

Looking more closely, it appears the package as distributed via NPM has an entire copy of the submodules included inside it, so probably then yarn submodule && statement should just be removed from the preinstall script - this will also fix the error I see reported in another thread where, even with yarn installed, yarn submodule errors if there's no .git folder in the working directory. Looks like the submodule update should only be done when npm installing within a working directory of node-minidump, but not when running npm install minidump in another project, but it does not appear there's an explicit hook set up for that.

@Jimbly Jimbly linked a pull request Dec 12, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant