Skip to content

Execute command Ignite new sharp module error happend #3017

@chenp1204

Description

@chenp1204

Describe the bug

$ ignite -h
C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\gluegun\build\index.js:15
throw up;
^

Error:
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-win32-x64.node'
Require stack:

  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\sharp.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\constructor.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\index.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\tools\generators.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\commands\help.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\cli.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\bin\ignite

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. (C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\sharp.js:37:9)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\constructor.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)

Node.js v20.18.0

OS:win11

Ignite version

11.3.2

Additional info

chenpeng@L0160 MINGW64 ~
$ ignite doctor
C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\gluegun\build\index.js:15
throw up;
^

Error:
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-win32-x64.node'
Require stack:

  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\sharp.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\constructor.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\index.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\tools\generators.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\commands\help.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\build\cli.js
  • C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\ignite-cli\bin\ignite

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. (C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\sharp.js:37:9)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object. (C:\Users\chenpeng\AppData\Local\pnpm\global\5.pnpm\[email protected]\node_modules\sharp\lib\constructor.js:11:1)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)

Node.js v20.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions