Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

350
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda