hexo报错:TypeError [ERR_INVALID_URL]: Invalid URL

Error message

  An error is reported when uploading an article in md format, and the information is as follows:

Error message

  A lot node_modulesof error messages will not be shown immediately afterwards , they are similar and slightly different~
  Note: Errors vary from person to person, so don’t say anything.

Solutions

  Start troubleshooting now

  1. The node version problem may be that the version is too high and needs to be returned 12. node -vThen I found my own version 12.14. Obviously not the problem
  1. It may be that there are some bugs after the plug-in upgrade, and there are indeed a lot node_modulesof error messages. You can delete node_modules, you did wrong package.jsonand package-lock.jsoncopied to the current folder and overwrite, and then in the root directory of your blog npm install. This method is unstable. It was successful at first, but the md format was not recognized in the article uploaded recently, and an error was reported when uploading again, and even a 404 in the blog appeared. . .
  1. After observing my own url, I think it may be that the title part of the web page address contains Chinese which makes hexo unrecognizable (this time the title is not only long, but also has a symbol~). Then I checked the permanent link part of the official document . The goal was to find a way to customize the url only in a certain article, but I was limited and didn't find it. If you are _config.ymlchanging all the address splicing methods, it will affect your whole body, so forget it~
  1. Think about it might be the issue of style. Because there is a backup, I changed it to the initial default style of hexo, and tried it again. The result was that the same error was reported when uploading the latest article.
  1. Finally, start with the article that generated the error, and compare it with the articles that have been uploaded successfully in the past. At present, it is found that the hexo cannot be completely rendered due to the excessive number of words in the article (this article includes 1.5w words in the md code~). When it is reduced to 1w words, the upload can be successful~~ I am currently looking for hexo on github . answer

end

  I am ashamed to say that I have limited abilities, and I can dig into this now. If there is any progress in the future, I will update it again~


If there are mistakes or not rigorous, please correct me, thank you very much.
My blog: http://breadhunter.gitee.io

Guess you like

Origin blog.csdn.net/weixin_40807714/article/details/108034480
URL
URL
URL
URL