[BUG] Has a problem with the latest version of pnpm i -g plasmo, and there is also a version dependency issue that needs to be resolved @parcel/optimizer-htmlnano #870
+ plasmo 0.83.0 (0.84.0 is available)
WARN Issues with peer dependencies found
.
└─┬ plasmo 0.83.0
└─┬ @plasmohq/parcel-config 0.39.4
└─┬ @parcel/config-default 2.9.3
└─┬ @parcel/optimizer-htmlnano 2.9.3
└─┬ htmlnano 2.1.0
└── ✕ unmet peer svgo@^3.0.2: found 2.8.0 in @parcel/optimizer-htmlnano
Done in 2m 2.7s
An error is reported when the operation is run
$ plasmo
C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\sharp.js:37
throw new Error(help.join('\n'));
^
Error:
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-win32-x64.node'
Require stack:
- C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\sharp.js
- C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\constructor.js
- C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\index.js
Possible solutions:
- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
- Install for the current win32-x64 runtime: "npm install --platform=win32 --arch=x64 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
at Object.<anonymous> (C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\sharp.js:37:9)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object.<anonymous> (C:\Users\Administrator\AppData\Local\pnpm\global\5\.pnpm\sharp@0.32.6\node_modules\sharp\lib\constructor.js:11:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
Node.js v18.18.0
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
[ ] I would like to fix this BUG via a PR
Code of Conduct
[ ] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.
What happened?
There is a dependency warning installed
An error is reported when the operation is run
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct