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

161
Views
Error al intentar ejecutar el programa cli a través de shebang

Hice un programa que funciona con éxito mientras ejecuto con node . Pero cuando instalé mi trabajo en el módulo global con npm i -g e intenté ejecutarlo con el shebang que especifiqué, recibí un 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.

He probado a borrar los tres archivos que se crean y el propio módulo.

La primera línea en index.js tiene #!usr/bin/env node , mi paquete.json también tiene "bin": {"alias_for_the_project":"index.js},

about 4 years ago · Juan Pablo Isaza
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!