astronautlabs / twine

A tool for distributing binary artifacts for Node.js native addons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/usr/bin/env: "node\r": file not found

c7hm4r opened this issue · comments

I want to install @astronautlabs/webrtc which depends on @astronautlabs/twine but I receive following output:

❯ yarn add @astronautlabs/webrtc 
yarn add v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "@libp2p/bootstrap > @multiformats/multiaddr > dns-over-http-resolver > native-fetch@4.0.2" has unmet peer dependency "undici@*".
[4/4] Building fresh packages...
[2/2] ⠈ @astronautlabs/webrtc
error /project/node_modules/@astronautlabs/webrtc: Command failed.
Exit code: 127
Command: twine install
Arguments: 
Directory: /project/node_modules/@astronautlabs/webrtc
Output:
/usr/bin/env: „node\r“: Datei oder Verzeichnis nicht gefunden
/usr/bin/env: Verwenden Sie -[v]S, um Optionen in #!-Zeichen zu übergeben

I guess the problem is that @astronautlabs/twine/src/cli.ts (and @astronautlabs/twine/dist/cli.js) are CRLF formatted instead of LF.

OS: Linux
@astronautlabs/webrtc: 0.5.2
@astronautlabs/twine: 1.1.2