• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

270
Views
'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

about 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error