Hexo install with pnpm report errors, but yarn not. #5460
Replies: 7 comments 4 replies
-
|
pnpm -v |
Beta Was this translation helpful? Give feedback.
-
the log had tell you why. It caused by theme This problem is called phantom dependencies. A package used some dependencies which are not declared in the package's The nature of |
Beta Was this translation helpful? Give feedback.
-
here is the theme's package.json {
"name": "hexo-theme-fluid",
"version": "1.9.7",
"description": "An elegant Material-Design theme for Hexo.",
"main": "package.json",
"files": [
"languages",
"layout",
"scripts",
"source",
"_config.yml"
],
"repository": {
"type": "git",
"url": "git+https://github.com/fluid-dev/hexo-theme-fluid.git"
},
"keywords": [
"hexo",
"theme",
"fluid",
"material"
],
"author": "Fluid-dev (https://github.com/fluid-dev)",
"license": "GPL-V3",
"bugs": {
"url": "https://github.com/fluid-dev/hexo-theme-fluid/issues"
},
"homepage": "https://hexo.fluid-dev.com/docs",
"engines": {
"node": ">=8.10.0"
},
"peerDependencies": {
"nunjucks": "^3.0.0"
}
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Could you reproduce it? |
Beta Was this translation helpful? Give feedback.
-
|
I'm sorry that I replied the wrong content before. I've had met this problem before but i didn't pay attention. This problem seems to be caused by the Using pnpm exec hexo g
pnpm hexo g |
Beta Was this translation helpful? Give feedback.
-
|
I seems like hexo 7.2.0 fix it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Check List
hexo versionto check)Expected behavior
hexo with pnpm working normally
Actual behavior
I use npm previously, and try to migrate to pnpm.
I ran
and encounter the following errors:
But moment js is exist in the pnpm lock file


How to reproduce?
pnpm install
hexo clean
Is the problem still there under
Safe mode?no
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json{ "name": "hexo-site", "version": "0.0.0", "private": true, "scripts": { "build": "hexo generate", "clean": "hexo clean", "deploy": "hexo deploy", "server": "hexo server" }, "hexo": { "version": "7.1.1" }, "dependencies": { "hexo": "^7.1.1", "hexo-abbrlink": "^2.2.1", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", "hexo-generator-feed": "^3.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-sitemap": "^3.0.1", "hexo-generator-tag": "^2.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-marked": "^6.3.0", "hexo-renderer-stylus": "^3.0.1", "hexo-server": "^3.0.0", "hexo-theme-fluid": "^1.9.7", "hexo-yam": "^8.0.0" } }Your site's
_config.yml(Optional)No response
Others
No response
Beta Was this translation helpful? Give feedback.
All reactions