-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Description
Environment
"dependencies": {
"@nuxt/fonts": "0.11.4",
"@nuxt/icon": "1.13.0",
"@nuxt/image": "1.10.0",
"@tailwindcss/vite": "^4.1.7",
"nuxt": "^3.17.3",
"tailwindcss": "^4.1.7",
"vue": "^3.5.14",
"vue-router": "^4.5.1"
},
"devDependencies": {
"typescript": "^5.8.3"
}Deno version:
Reproduction
https://github.com/devniza/deno-nuxt-image-error-repro
Describe the bug
Similar to the issue raised in the Nuxt repo:
nuxt/image#1691
Deno is supported now by Nuxt and shown as an option as your package manager for new Nuxt Projects initiated via CLI.
This is the error message on deno install:
Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
...
┠─ npm:sharp@0.32.6
...
> deno install --allow-scripts=npm:@tailwindcss/oxide@4.1.7,npm:sharp@0.32.6,npm:@parcel/watcher@2.5.1
error: script 'install' in 'sharp@0.32.6' failed with exit code 1
stdout:
sharp: Using cached C:\Users\nizas\AppData\Roaming\npm-cache\_libvips\libvips-8.14.5-win32-x64.tar.br
sharp: Integrity check passed for win32-x64
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
stderr:
sharp: Installation error: Unexpected end of data
Error launching 'node-gyp': program not found
error: failed to run scripts for packages: sharp@0.32.6I have already installed node-gyp
> node-gyp
Usage: node-gyp <command> [options]
where <command> is one of:
- build - Invokes `msbuild` and builds the module
- clean - Removes any generated build files and the "out" dir
- configure - Generates MSVC project files for the current module
- rebuild - Runs "clean", "configure" and "build" all at once
- install - Install node development files for the specified node version.
- list - Prints a listing of the currently installed node development files
- remove - Removes the node development files for the specified version
node-gyp@11.2.0 C:\Users\nizas\AppData\Local\pnpm\global\5\.pnpm\node-gyp@11.2.0\node_modules\node-gyp
node@24.0.2Additional context
No response
Logs
{
"error": {
"message": "[500] [IPX_ERROR] \nSomething went wrong installing the \"sharp\" module\n\nCannot find module '../build/Release/sharp-win32-x64.node'\nRequire stack:\n- C:\\Users\\nizas\\Desktop\\deno-nuxt-image-error-repro\\node_modules\\.deno\\sharp@0.32.6\\node_modules\\sharp\\lib\\sharp.js\n- C:\\Users\\nizas\\Desktop\\deno-nuxt-image-error-repro\\node_modules\\.deno\\sharp@0.32.6\\node_modules\\sharp\\lib\\constructor.js\n- C:\\Users\\nizas\\Desktop\\deno-nuxt-image-error-repro\\node_modules\\.deno\\sharp@0.32.6\\node_modules\\sharp\\lib\\index.js\n- C:\\Users\\nizas\\Desktop\\deno-nuxt-image-error-repro\\node_modules\\.deno\\sharp@0.32.6\\node_modules\\sharp\\lib\\index.js\n\nPossible solutions:\n- Install with verbose logging and look for errors: \"npm install --ignore-scripts=false --foreground-scripts --verbose sharp\"\n- Install for the current win32-x64 runtime: \"npm install --platform=win32 --arch=x64 sharp\"\n- Consult the installation documentation: https://sharp.pixelplumbing.com/install"
}
}