tsproto error: /usr/bin/env: ‘node\r’: No such file or directory
danfarinoeyecue opened this issue · 2 comments
danfarinoeyecue commented
In the published v1.0.21 NPM package, tsproto
will not execute on a Linux machine.
The output is:
/usr/bin/env: ‘node\r’: No such file or directory
The extra \r
is present in the published v1.0.21 NPM package:
$ hexdump -C v1.0.21/package/bin/cli
00000000 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20 |#! /usr/bin/env |
00000010 6e 6f 64 65 0d 0a 0d 0a 72 65 71 75 69 72 65 28 |node....require(|
00000020 27 2e 2e 2f 64 69 73 74 2f 63 6c 69 27 29 3b 0d |'../dist/cli');.|
00000030 0a |.|
00000031
To compare, here is the working version v1.0.20:
$ hexdump -C v1.0.20/package/bin/cli
00000000 23 21 20 2f 75 73 72 2f 62 69 6e 2f 65 6e 76 20 |#! /usr/bin/env |
00000010 6e 6f 64 65 0a 0a 72 65 71 75 69 72 65 28 27 2e |node..require('.|
00000020 2e 2f 64 69 73 74 2f 63 6c 69 27 29 3b 0a |./dist/cli');.|
0000002e
I don't see anything in the repo that would have caused this, so I'm suspecting it happened during the NPM package publishing process.
Thanks!
nicezic commented
still has a problem.
KIMBEOBWOO commented
npm install -g nestjs-proto-gen-ts
I had the same problem
I installed the package globally and solved it urgently.