Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

346
Views
Error: Cannot find module 'module-name' - npm creating a shortcut for packages when install it

I hope someone help me i searched a lot but not found the answer i was installed node v12.9.1 and installed some packages like express, fluent-ffmpeg, ffmpeg, request, axios after installing they was working good but yesterday i tried to run a file but it's give

Error: can't find module 'module-name'

I said maybe there's something wrong is happened so i removed it then installed v10.23.0 but i found the problem is that when i run npm install <package-name> it's creating a shortcut with the package name that's why it's getting me this error and When i try to open the package folder it's also give the following error

Error Message

and even if i re installed the packages it's will tell me that there's some packages updated but when require it give the following error

Error: Cannot find module 'fluent-ffmpeg'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\hp\v\v.js:1:16)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

I don't know where's the problem can anyone help me

Here's some images for packages

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Delete node_modules folder, find out which node version you need to use, switch to that version, then reinstall the packages when you're on the correct node version. Then try npm start again. NVM is a good package for changing between node versions.

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

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!