Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not install Nuxt Image module on a Nuxt site with Deno package manager #1691

Open
hdwebpros opened this issue Feb 3, 2025 · 0 comments

Comments

@hdwebpros
Copy link

Deno is supported now by Nuxt and shown as an option as your package manager for new Nuxt Projects initiated via CLI.

However, this module doesn't work with Deno. I noted this on a closed issue: #1210 (comment)

Deno’s Node.js compatibility layer doesn’t fully implement BrotliDecompress.prototype.constructor, which sharp relies on internally. This gives you an error message on deno install

Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
...
┠─ npm:[email protected]
...

And if you try to use the allow-scripts flag you get:

error: script 'install' in '[email protected]' failed with exit code 1
stdout:
sharp: Using cached C:\Users\ryan\AppData\Roaming\npm-cache\_libvips\libvips-8.14.5-win32-x64.tar.br
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies

stderr:
sharp: Installation error: Not implemented: BrotliDecompress.prototype.constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant