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

157
Views
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
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!