Skip to content

Errors with Error: Cannot find module 'prettier' after prettierd's update #816

@gegoune

Description

@gegoune

HI there,

I have noticed an issue running prettierd recently, seems like installed paths are not quite matching package version:

❯ brew install fsouza/prettierd/prettierd
==> Fetching fsouza/prettierd/prettierd
==> Downloading https://registry.npmjs.org/@fsouza/prettierd/-/prettierd-0.25.4.tgz
[...]
❯ cat foo.js | prettierd foo.js
Error: Cannot find module 'prettier'
Require stack:
- /opt/homebrew/Cellar/prettierd/0.25.3/libexec/lib/node_modules/@fsouza/prettierd/dist/service.js
- /opt/homebrew/Cellar/prettierd/0.25.3/libexec/lib/node_modules/@fsouza/prettierd/node_modules/core_d/lib/server.js
- /opt/homebrew/Cellar/prettierd/0.25.3/libexec/lib/node_modules/@fsouza/prettierd/node_modules/core_d/lib/daemon.js
❯ ls -d /opt/homebrew/Cellar/prettierd/0.25.*
/opt/homebrew/Cellar/prettierd/0.25.4

Please note that no directory for version 0.25.4 is present when installed with Homebrew.


Thanks for prettierd, it's amazing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions