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

160
Vistas
Erro when trying to execute cli program through shebang

I made a program which is successfully working as I run with node . But when I installed my work at the global module with npm i -g and tried to execute it with the shebang I specified I got an error:

C:\Users\user_name\AppData\Roaming\npm\project_name.ps1:24:7
Line |
  24 |      & "usr/bin/env$exe" node "$basedir/node_modules/project_name …
     |        ~~~~~~~~~~~~~~~~~
     | The term 'usr/bin/env.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the
     | spelling of the name, or if a path was included, verify that the path is correct and try again.

I have tried delete the three files that are created and the module itself.

The first line in the index.js does have #!usr/bin/env node, my package.json also has "bin": {"alias_for_the_project":"index.js},

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