Open vergissberlin opened 3 years ago
I just checked the code base and I couldnΒ΄t find Windows-style line endings CRLF \r\n
I have no idea left now, what causes the error ππ»ββοΈ
I just checked the code base and I couldnΒ΄t find Windows-style line endings CRLF
\r\n
I have no idea left now, what causes the error ππ»ββοΈ
hmmm weird, just tried on a MacOS and it looks like it's working fine, on what Node version are you?
Hi and thank you for your quick response! It is v16.1.0 on macOS.
I tried it now with other versions an I got the same issue:
So it seems not related to the node version. Maybe to the dependencies? This is how it looks like on installation:
yarn global upgrade @liinkiing/ytomp3
yarn global v1.22.10
[1/4] π Resolving packages...
[2/4] π Fetching packages...
info @ffmpeg-installer/darwin-arm64@4.1.5: The CPU architecture "x64" is incompatible with this module.
info "@ffmpeg-installer/darwin-arm64@4.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/linux-arm64@4.1.4: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/linux-arm64@4.1.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/linux-arm64@4.1.4: The CPU architecture "x64" is incompatible with this module.
info @ffmpeg-installer/linux-arm@4.1.3: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/linux-arm@4.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/linux-arm@4.1.3: The CPU architecture "x64" is incompatible with this module.
info @ffmpeg-installer/win32-ia32@4.1.0: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/win32-ia32@4.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/win32-ia32@4.1.0: The CPU architecture "x64" is incompatible with this module.
info @ffmpeg-installer/linux-x64@4.1.0: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/linux-x64@4.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/linux-ia32@4.1.0: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/linux-ia32@4.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info @ffmpeg-installer/linux-ia32@4.1.0: The CPU architecture "x64" is incompatible with this module.
info @ffmpeg-installer/win32-x64@4.1.0: The platform "darwin" is incompatible with this module.
info "@ffmpeg-installer/win32-x64@4.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] π Linking dependencies...
warning "fastify-cli > blessed-contrib > marked-terminal@4.1.1" has incorrect peer dependency "marked@^1.0.0 || ^2.0.0".
[4/4] π¨ Rebuilding all packages...
success Saved lockfile.
success Saved 63 new dependencies.
info Direct dependencies
ββ @liinkiing/ytomp3@1.5.1
info All dependencies
ββ @ffmpeg-installer/darwin-x64@4.1.0
ββ @ffmpeg-installer/ffmpeg@1.1.0
ββ @liinkiing/ytomp3@1.5.1
ββ @nodelib/fs.scandir@2.1.5
ββ @oclif/parser@3.8.5
ββ adm-zip@0.5.9
ββ ansi-escape-sequences@5.1.2
ββ aproba@1.2.0
ββ are-we-there-yet@1.1.7
ββ array-back@4.0.2
ββ base64-js@1.5.1
ββ bl@4.1.0
ββ braces@3.0.2
ββ code-point-at@1.1.0
ββ color-convert@1.9.3
ββ color-name@1.1.4
ββ color-string@1.6.0
ββ console-control-strings@1.1.0
ββ delegates@1.0.0
ββ eastasianwidth@0.2.0
ββ emoji-regex@8.0.0
ββ expand-template@2.0.3
ββ fill-range@7.0.1
ββ gauge@2.7.4
ββ github-from-package@0.0.0
ββ has-unicode@2.0.1
ββ hash-arg@1.0.3
ββ homedir@0.6.0
ββ ieee754@1.2.1
ββ list-it@1.3.7
ββ lodash.template@4.5.0
ββ lodash.templatesettings@4.2.0
ββ lodash.throttle@4.1.1
ββ m3u8stream@0.8.4
ββ miniget@4.2.1
ββ mkdirp-classic@0.5.3
ββ napi-build-utils@1.0.2
ββ node-abi@2.30.1
ββ node-addon-api@3.2.1
ββ node-getopt@0.3.2
ββ npmlog@4.1.2
ββ number-is-nan@1.0.1
ββ picomatch@2.3.0
ββ prebuild-install@6.1.4
ββ process-nextick-args@2.0.1
ββ queue-microtask@1.2.3
ββ run-parallel@1.2.0
ββ sanitize-filename@1.6.3
ββ set-blocking@2.0.0
ββ sharp@0.27.2
ββ simple-get@4.0.0
ββ simple-swizzle@0.2.2
ββ streamspeed@2.0.1
ββ strip-json-comments@2.0.1
ββ to-regex-range@5.0.1
ββ tr46@0.0.3
ββ truncate-utf8-bytes@1.0.2
ββ utf8-byte-length@1.0.4
ββ webidl-conversions@3.0.1
ββ whatwg-url@5.0.0
ββ wide-align@1.1.5
ββ ytdl@1.4.1
ββ ytpl@2.2.3
β¨ Done in 21.77s.
Looks good to me β¦
So let's check the file in the /usr/local/bin
directory which is an symlink /Users/andre.lademann/.config/yarn/global/node_modules/.bin/ytomp3
:
So I can confirm that there is a CRLF encoding there.
After changing that, it works. Maybe it depends on the package manager? I had used yarn global add β¦
Hi,
to build that tool you probably build it on a Windows machine. Could you please check and change if needed the line endings, because it causes a problem on UNIX based operating systems:
thank you very much! AndrΓ©