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

194
Vistas
Run js file in any directory using $PATH

I created a Linux executable file using pkg library (npm), what I'm trying to do is to include the path into $PATH var in order to be able to execute this file in any directory through the terminal as Node.js does

The steps to replicate what I'm looking for:

  1. create a .js file
  2. insert some code
  3. install pkg library through npm i -g pkg
  4. run npm pkg to get executable files
  5. include executable file path into $PATH variable to be able to run my .js file in any directory (stuck in this step)
  6. get current directory where .js file was executed
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