giflossy | Merged into Gifsicle | Animation library
kandi X-RAY | giflossy Summary
kandi X-RAY | giflossy Summary
This project has now been officially merged upstream into Gifsicle, so please use that:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of giflossy
giflossy Key Features
giflossy Examples and Code Snippets
Community Discussions
Trending Discussions on giflossy
QUESTION
I can't find any straightforward instructions on this. I've installed node.js and npm, then created a project in its own folder, D:\node_stuff
, then cd'd there via cmd
(Windows 10) and ran npm install express
, npm init
. I'm trying to use gifify, and installed its dependencies via npm
instead of brew
(ffmpeg, imagemagick, giflossy).
gifify -h
-> 'gifify' is not recognized as an internal or external command, operable program or batch file.node gifify -h
-> Error: Cannot find module 'D:\node_stuff\gifify'cd node_modules
->node gifify -h
-> nothing happens
What am I doing wrong? Where do I even look - all tutorials with simple search only show how to install packages or build a project - I don't need to build anything, only to use this one module.
...ANSWER
Answered 2020-Sep-22 at 20:52You can run npx gifify -h
.
Generally, you have two options when installing NPM packages:
- install globally e.g.
npm install gifify -g
- install locally e.g.
npm install gifify
(ornpm install
if the package is listed in package.json)
Some packages, when installed, also install a command-line script. For globally-installed packages, that CLI script is installed to a location that is in your PATH and hence you can simply run the bare command e.g. gifify -h
. For locally-installed packages, that CLI script is installed locally under the node_modules
folder, which is not in your PATH. To run such a script you can use the NPM package executor npx, for example npx gifify -h
. This essentially executes the local script from the node_modules/.bin
folder.
If your package script, e.g. gifify
, relies on third-party executables such as FFMPEG and ImageMagick, then I would install those as regular applications (which will put them on your PATH).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install giflossy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page