Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

197
Vistas
change node_modules directory when run command npm install

i have my folder structure

folder1
   package.json
   src
     files
folder2
   package.json
   src
     files
folder3
   package.json
   src
     files

I would like that when I run the command to install packages, I create a folder with modules not in the same directory as package.json, but, for example, in the same directory above. That is, I want the node_modules folder to be at the same level as the folder1, folder2 and folder3 folders. I tried to use npm config set prefix /mypath but still didn’t figure out how to use it correctly.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda