Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

136
Vistas
'The system cannot find the path specified' npx error when trying to use new published package on npm

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

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos