You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use npm previously, and try to migrate to pnpm.
I ran
pnpm install
hexo clean
and encounter the following errors:
╭─ ~/Code/plugin/test ✔ 21:13:39 ─╮
╰─ pnpm install ─╯
WARN 3 deprecated subdependencies found: abab@2.0.6, cuid@2.1.8, domexception@4.0.0
Packages: +343
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 344, reused 343, downloaded 0, added 343, done
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
Done in 16.9s
╭─ ~/Code/plugin/test ✔ 17s 21:13:59 ─╮
╰─ hexo clean ─╯
INFO Validating config
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/helpers/date.js
Error: Cannot find module 'moment'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/helpers/date.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/helpers/date.js:5:16
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/helpers/utils.js
Error: Cannot find module 'hexo-util'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/helpers/utils.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/helpers/utils.js:6:23
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/helpers/wordcount.js
Error: Cannot find module 'hexo-util'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/helpers/wordcount.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/helpers/wordcount.js:5:23
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/generators/index-generator.js
Error: Cannot find module 'hexo-pagination'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/generators/index-generator.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/generators/index-generator.js:3:20
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/events/lib/footnote.js
Error: Cannot find module 'hexo-util'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/events/lib/footnote.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/events/lib/footnote.js:3:23
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
ERROR Script load failed: node_modules/hexo-theme-fluid/scripts/events/lib/highlight.js
Error: Cannot find module '@adobe/css-tools'
Require stack:
- /test/node_modules/hexo-theme-fluid/scripts/events/lib/highlight.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at req (/test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:241:31)
at /test/node_modules/hexo-theme-fluid/scripts/events/lib/highlight.js:8:11
at /test/node_modules/.pnpm/hexo@7.1.1/node_modules/hexo/dist/hexo/index.js:249:20
at tryCatcher (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/test/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:478:21)
INFO Deleted database.
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
![image](https://private-user-images.githubusercontent.com/81098819/321251135-675d3696-2050-4d7d-9740-716f1d086b36.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTAzOTksIm5iZiI6MTcyNDc5MDA5OSwicGF0aCI6Ii84MTA5ODgxOS8zMjEyNTExMzUtNjc1ZDM2OTYtMjA1MC00ZDdkLTk3NDAtNzE2ZjFkMDg2YjM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDIwMjEzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxMDFkNGY0YWVjYzgyZDEyZDBjNDBlNGQ0MDFmMWY3YzVhZTkyNDhmNWRkYTA4ZDdmYWU4ODgzMzQwYWM3NWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yDoNUd9a6pAlFka09lm6NEa1DvMQAn46WK34uyqNl-4)
![image](https://private-user-images.githubusercontent.com/81098819/321251167-c8fc6b44-8755-4623-9292-c04244d29dbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTAzOTksIm5iZiI6MTcyNDc5MDA5OSwicGF0aCI6Ii84MTA5ODgxOS8zMjEyNTExNjctYzhmYzZiNDQtODc1NS00NjIzLTkyOTItYzA0MjQ0ZDI5ZGJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDIwMjEzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxNzViOGIwY2E3MWMyNDc3MTc2MmMyOWNkNDcwNmYzNmFjOWQxODFhZWI5MTMwNGQ0YmE0ODVhOGQxNGVjZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x-aoyGwkl1AekUPKaDZV7lVFB-DC7tobV6S6LSpb9lE)
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
The text was updated successfully, but these errors were encountered: