gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
539 stars 57 forks source link

Executable alias doesn't work for global install #70

Closed prurigro closed 3 months ago

prurigro commented 3 months ago

When you run npm install -g single-file-cli it installs ~/.node/lib/node_modules/single-file-cli and creates a symlink for ~/.node/lib/node_modules/single-file-cli/single-file @ ~/.node/bin/single-file-cli, but when you run it you get the following error:

error: Module not found "file:///home/prurigro/.node/bin/single-file-cli-api.js".
    at file:///home/prurigro/.node/bin/single-file-cli:26:44

Running ~/.node/lib/node_modules/single-file-cli/single-file works however, and creating an alias for that works as well:

alias singlefile='~/.node/lib/node_modules/single-file-cli/single-file'
gildas-lormeau commented 3 months ago

Thank you, this bug will be fixed in the next version.

gildas-lormeau commented 3 months ago

The new version 2.0.11 is available on NPM.

prurigro commented 3 months ago

Awesome, thanks so much for the quick fix! Not to mention for the amazing tool :)