Skip to content
New issue

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

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

Already on GitHub? # to your account

support for deno #9

Open
landsman opened this issue Feb 17, 2025 · 0 comments
Open

support for deno #9

landsman opened this issue Feb 17, 2025 · 0 comments

Comments

@landsman
Copy link

current state

 deno run -A --node-modules-dir npm:realfavicon@latest generate src/ui/assets/favicon.png favicon-settings.json output-data.json public
error: Uncaught (in promise) Error: 
Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp-darwin-arm64v8.node'
Require stack:
- /Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/sharp.js
- /Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/constructor.js
- /Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/index.js
- /Users/landsman/projects/landsman/music/node_modules/.deno/@realfavicongenerator+check-favicon@0.4.8/node_modules/@realfavicongenerator/check-favicon/dist/desktop/desktop.js
- /Users/landsman/projects/landsman/music/node_modules/.deno/@realfavicongenerator+check-favicon@0.4.8/node_modules/@realfavicongenerator/check-favicon/dist/index.js
- /Users/landsman/projects/landsman/music/node_modules/.deno/@realfavicongenerator+check-favicon@0.4.8/node_modules/@realfavicongenerator/check-favicon/dist/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 darwin-arm64v8 runtime: "npm install --platform=darwin --arch=arm64v8 sharp"
- Consult the installation documentation: https://sharp.pixelplumbing.com/install
    at Object.<anonymous> (file:///Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/sharp.js:37:9)
    at Object.<anonymous> (file:///Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/sharp.js:40:4)
    at Module._compile (node:module:743:34)
    at loadMaybeCjs (node:module:768:10)
    at Object.Module._extensions..js (node:module:753:12)
    at Module.load (node:module:660:32)
    at Function.Module._load (node:module:532:12)
    at Module.require (node:module:679:19)
    at require (node:module:810:16)
    at Object.<anonymous> (file:///Users/landsman/projects/landsman/music/node_modules/.deno/sharp@0.32.6/node_modules/sharp/lib/constructor.js:11:1)

    info: Trying to execute an npm package using Node-API addons,
          these packages require local `node_modules` directory to be present.
    hint: Add `"nodeModulesDir": "auto" option to `deno.json`, and then run
          `deno install --allow-scripts=npm:<package> --entrypoint <script>` to setup `node_modules` directory.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant