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
540 stars 58 forks source link

Error: command not found, after `npm install -g "gildas-lormeau/single-file-cli"` #10

Closed gudh closed 1 year ago

gudh commented 1 year ago

First of all, thanks for building this amazing tool, love the chrome extension!

A problem I face when trying to use the CLI tool:

After installing it on mac with npm install -g "gildas-lormeau/single-file-cli", when I try to run single-file command, I got error "command not found"

➜  ~  npm list -g single-file-cli
/opt/homebrew/lib
└── single-file-cli@ -> ./../../../Users/gudh/.npm/_cacache/tmp/git-cloneIMlDig

➜  ~ single-file
zsh: command not found: single-file
➜  ~ single-file-cli
zsh: command not found: single-file-cli

anything I am missing?

gudh commented 1 year ago

By the way, I tried the download single-file-cli-master approach, and it works

but npm install -g "gildas-lormeau/single-file-cli" approach still doesn't

gudh commented 1 year ago

Update:

After changing command to npm install -g single-file-cli, now it works

Problem solved

gildas-lormeau commented 1 year ago

@gudh Sorry for the late answer, I'm glad you found the cause of the issue. I updated the instructions. Thank you!

gudh commented 1 year ago

@gildas-lormeau cool, thanks for building this amazing tool, love it!

gildas-lormeau commented 1 year ago

@gudh You're welcome :)