Closed dumindu closed 4 years ago
@dumindu
Is the page here that went wrong?
I am not sure whether the issue has been fixed or not (we lost the track of it), so I will add a test case specific for your issue.
Thanks @stevenjoezhang @SukkaW for the verification. I am not good at node and js. It looks like,
npm install hexo-cli -g
npm install
sets "hexo": {"version": "4.2.0"},
on package.json, even I set it to v.4.2.1 before running above commands.
env : macOS, tested with both
node
andnvm
;(brew install); after uninstall all related to node and hexo ; (Node v14.5.0 & v12.18.2)
However in a one attempt with nvm node 12.18.2
I could stick with hexo v.4.2.1 and could deploy stuff to my site by changing "dependencies": { "hexo": "hexojs/hexo", ...} to
"dependencies": { "hexo": "^4.2.1", ...}` in the package.json.
{
"name": "learning-rust.github.io",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "4.2.1"
},
"scripts": {
"build": "hexo generate",
"eslint": "eslint .",
"deploy": "hexo deploy"
},
"dependencies": {
"cheerio": "^0.22.0",
"hexo": "^4.2.1",
"hexo-clean-css": "^1.0.0",
"hexo-deployer-git": "^2.1.0",
"hexo-filter-nofollow": "^2.0.2",
"hexo-fs": "^3.1.0",
"hexo-generator-sitemap": "^2.0.0",
"hexo-renderer-marked": "^3.0.0",
"hexo-renderer-pug": "^1.0.0",
"hexo-renderer-stylus": "^1.0.0",
"hexo-renderer-swig": "^1.1.0",
"hexo-server": "^1.0.0",
"hexo-uglify": "^1.0.0",
"lunr": "2.3.8",
"sharp": "^0.25.2"
},
"devDependencies": {
"eslint": "^7.0.0",
"eslint-config-hexo": "^4.0.0",
"husky": "^4.0.7",
"imagemin-lint-staged": "^0.4.0",
"lint-staged": "^10.2.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{png,jpeg,jpg,gif,svg}": [
"imagemin-lint-staged",
"git add"
]
},
"engines": {
"node": ">=8.10.0"
}
}
Looks like some issue on my side. Thanks again for the verification.
Question
{
}
in the code blocks, convert to{
and}
Environment & Settings
Node.js & npm version
Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Thanks