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.
-
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.
-
Check List
hexo version
to 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
Your site's
_config.yml
(Optional)No response
Others
No response
Beta Was this translation helpful? Give feedback.
All reactions