fraserxu / electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
MIT License
1.24k stars 136 forks source link

Installation an usage in Nixos? #312

Closed peterstorm closed 1 year ago

peterstorm commented 1 year ago

Hello!

I'm having some trouble trying to install this in nixos.

I get this error when trying to install globally. Is there a way to install this "locally"?

npm ERR! code EROFS
npm ERR! syscall mkdir
npm ERR! path /nix/store/46g0dmf6rcpikbzs22y7w4amyg0ciksi-nodejs-16.14.2/lib/node_modules/electron-pdf
npm ERR! errno -30
npm ERR! rofs EROFS: read-only file system, mkdir '/nix/store/46g0dmf6rcpikbzs22y7w4amyg0ciksi-nodejs-16.14.2/lib/node_modules/electron-pdf'
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-09-28T11_03_23_341Z-debug-0.log