-
Notifications
You must be signed in to change notification settings - Fork 459
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
[Bug]: Not able to install it using GitHub address in Node 16 #3777
Comments
If you manually remove |
Also, you can easily remove that post build thing from package.json. |
@ahnpnl Thanks for quick response and sorry if I initiated this discussion in a wrong place.
Most npm packages can be installed like this but So I believe this is a bug (a problem in the software that can be fixed.) Maybe we can change that line to first check if this is actually a valid git repository before running the git command. |
Your case is valid but it’s a rare case to run Feel free to submit a PR for such an issue. |
Thanks! :-) |
Version
28.0.8
Steps to reproduce
Install it using GitHub repository address git+https://github.com/kulshekhar/ts-jest.git
Try to run
npm ci
in Github Actions with NodeJS version 16.Expected behavior
ts-jest to be built and installed.
Actual behavior
It will fail to install ts-jest with this error:
Debug log
Not applicable
Additional context
I'm doing this because this pull request is not released yet: #3767
This is the line that's causing the issue: https://github.com/kulshekhar/ts-jest/blob/main/scripts/post-build.js#L5
I think in NPM associated with Node 16
.git
is removed the repository is cloned. Is there any other way we can have that condition without running git?Environment
The text was updated successfully, but these errors were encountered: