This is the sixth day of my participation in Gwen Challenge
I thought I would try a lot of things before, I didn’t think about the consequences, ha ha ha.
From morning to evening, since the use of Butterfly blog theme, the editor has been following the theme update, this is not the latest theme needs to update the hexo to version 5.0 or higher (mainly because of the new version features into the editor’s attention).
Started from the morning to update the theme, the adapter need to be updated hexo, so a loss in morning and evening on it, it is a purpose of tears, during the update will update without the hexo directly, tears eyes, then think remounted start again, then directly to restart the computer, think later continued STH over and over again, and then finally done. Ha, ha, ha.
View the original Hexo version and node version:
// Enter the following commands respectively: hexo -v node -v
Here are the original versions of Node:12.18.3 and hexo:4.2.1
During this period, I thought of changing the downloading mode of NPM to CNPM, so I knocked on the command line crazily. It may be that I had too little experience in small series, and finally I failed. The main reason during this period is the network and Taobao source (according to the report, no one continues to manage??). The problem.
So I went back to NPM and realized that Node is not the latest version, so I downloaded the latest stable version 14.15.0 on the Node website. Download url and version as shown below:
The installation steps for Node can be found below: Hexo+Github Pages
To see if the node version has been successfully updated, type node -v in git.
After another round of operation, hexo was completely removed. : say can’t find the command), ask small Bob’s inner shadow area at that time.
May be asked why not baidu search, the key is that its solution is too little, find not how to rely on the spectrum, suddenly turned over a dozen web pages, as expected, finally have to rely on their own.
Git Bash to your blog directory
If you also lost hexo due to a command line swipe, run the following command again and you’ll see that hexo comes back (if not, type it several times) :
NPM install hexo-cli -g #
This command is used to remove the hexo.
Without further ado, the following command will be directly issued to update the successful command:
// Execute the following commands respectively
NPM install -g npm-check // Install npm-check
NPM -check // Checks whether the system plug-in needs to be upgraded
NPM install -g npm-upgrade // Install npm-upgrade
Npm-upgrade // Update package.json// After running the npm-upgrade command, you are asked to enter yes or no. You can directly enter yes or Y
NPM update -g // Update global plug-ins
NPM update --save // Update system plug-ins
The following is a successful update.
Given the lack of online solutions, update Hexo’s potholes have been released