You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Yarn, karma cannot be added as a dependency resolved from GitHub due to package.json lacking a prepack script. When Yarn clones a package from github it runs npm install and npm pack, but since karma needs to be built before being packed the resulting package will not function.
I believe this has been fixed by #3524. Are you trying to install the latest version from GitHub? Maybe your branch/version does not include this change?
UPD Yeah, I think it is a matter of rebasing #3531 to get it working. Or maybe you can submit a change requested in that PR, so we can merge it?
Did a quick test and it seems that #3524 does indeed fix this issue. I linked the wrong related issue, but #3530 is the reason for wanting to resolve from github (meant to link yarnpkg/berry#1515). Thanks!
Using Yarn, karma cannot be added as a dependency resolved from GitHub due to
package.json
lacking aprepack
script. When Yarn clones a package from github it runsnpm install
andnpm pack
, but since karma needs to be built before being packed the resulting package will not function.See:
https://yarnpkg.com/advanced/lifecycle-scripts
#3530 (issue where this is a problem)
The text was updated successfully, but these errors were encountered: