I just published my first package on npm, it's a command-line tool executable.
so it will execute using npx duration-mg
, but when I'm trying to use it it gives me an error "The system cannot find the path specified".
I think the problem is in package.json file, but I can't see anything wrong with it, any ideas?
packaga.json file:
{
"name": "duration-mg",
"version": "1.1.0",
"description": "Media Duration Command Line Tool, by MG45",
"homepage": "https://github.com/Marwan1998/media-duration-cmd#readme",
"main": "index.js",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/Marwan1998/media-duration-cmd.git"
},
"author": "Marwan Algadi, MG45",
"license": "ISC",
"bugs": {
"url": "https://github.com/Marwan1998/media-duration-cmd/issues"
},
"bin": "./index.js",
"dependencies": {
"chalk": "^4.0.0",
"chalk-animation": "^2.0.2",
"figlet": "^1.5.2",
"get-video-duration": "^4.1.0",
"global": "^4.4.0",
"gradient-string": "^2.0.1",
"inquirer": "^8.2.4",
"nanospinner": "^1.1.0"
}
}
The package on GitHub: Media-Duration-Package || on npm duration-mg