-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
install 9.15.1 fail #1984
Comments
It cause by ee2ae80#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R25 |
+1 |
Same here. |
Apologies, will fix in ~2 hours unless someone wants to put together a pull request quickly. |
+1 |
Could you change latest tag in npm to fix this problem quickly? |
+1 |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
For those in a hurry (Like I was). You can download the repo and install it locally with npm and it works fine |
+1 |
1 similar comment
+1 |
Also a work around for dependent packages is to install 9.15.0 as a peer dependency via |
+1 |
So it's not fixed yet? |
Waiting for a fix... |
Starting to work on the fix. I’m muting the bug, as it’s getting spammy. If you’d like to subscribe to the bug, to be notified when it’s fixed, please use the subscribe button. |
Ok, can a few folks try: npm install github:highlightjs/highlight.js#fix_build
npx hljs Let me know if that works... |
I have tried it, It works for me. |
@isagalaev is right. We maintainers do the best we can, and it's definitely not part of our day job. There are a few solutions people can use to protect themselves from these kinds of events:
|
One suggestion that might make it easier for maintainers would be to use a |
@ljharb, that's a good suggestion. I'd also like to write a better check on TravisCI. I wasn't expecting the package to be stripped of some of its contents. I'll write an incident report and publish it here describing what happened and what we will try to improve to prevent this from happening again. Again, this is a call for the community to help us (we literally run this project on a skeleton crew... putting in maybe 1 hour a month to keeping it running). I'm definitely not an expert on NPM - so help from folks with more experience would be greatly appreciated to keep this project healthy. |
Folks, I've published 9.15.5.... any better? 🤞 |
@marcoscaceres Our build system is all green again - got the latest 9.15.5 version as npm lists that version now too. |
incident reportWhat happened?About a week ago we merged #1951, which made changes to the Although we'd been thoroughly testing this binary in production in another project for over a year, we'd been installing highlight.js over a When 9.15.1 release went live, it was missing What we did in responseAt first, I thought the problem was that the As a result, I reverted #1951. However, this was insufficient because we'd changed our release script to work with the new After a few bad releases, we then successfully published 9.15.5. What we learnedKeeping in mind that the maintainers are new to the project:
What could we do to prevent this from happening againWe need to figure out a way to pre-publish (or publish as "beta") a package, and then try to install the package in a mock project to make sure things still work as expected. If folks have suggestion for how to do that - or what a good setup might be to test what's actually published before it goes live, I'd be open to suggestions. |
I'll wait for a few more confirmation that things are back in a good state before closing. Will keep an eye on things throughout the day. |
@marcoscaceres My system can accomplish npm install now. The installed highlight.js version is 9.15.5. Thanks for you fix! |
Thanks for confirming @zhaoqin-github. |
success+1 |
Quick solution: |
@marcoscaceres if you enable 2FA for this package (which you should, regardless) then when you run |
I can tell you it is working right now. I have a project that depends of typedoc, hence this project. Being honest, you give me a lot of headaches today. For me today was a Murphy moment that ended with this incident today. I'm not blaming you. This is an open source project and we have to be aware this things are going to happen. And personally, I PREFER, 100x times, an open source project like this one that a private one with no documents. |
I also met this issue yesterday, thanks for resolving it |
Ok, seems we are good... closing. |
…ocumentationjs -> highlightjs)" This reverts commit 00abb33. related issue highlightjs/highlight.js#1984
…frezing `highlight.js` dep" This reverts commit 433d54f. related issue highlightjs/highlight.js#1984
There are a few ways to go about this -
|
`~9.7.0` will match all `9.7.X` versions but not `9.8.X`. There is a recent issue in the referenced higlight.js library causing our build to fail: highlightjs/highlight.js#1984 Sticking to `9.7.X` should solve this problem.
Error: ENOENT: no such file or directory, chmod '.../node_modules/_highlight.js@9.15.1@highlight.js/tools/build.js'
missing
tools/build.js
file.The text was updated successfully, but these errors were encountered: