`/usr/bin/env: ‘node\r’: No such file or directory` on Linux
Opened this issue · 6 comments
smhmd commented
ItzBlitz98 commented
Hm interesting what file did you have to delete ?
smhmd commented
This one:
Lines 1 to 2 in 1600140
On my system:
$ which torrentflix
/home/me/.npm-packages/bin/torrentflix
$ readlink -f /home/me/.npm-packages/bin/torrentflix
/home/me/.config/yarn/global/node_modules/torrentflix/bin/torrentflix
So, /home/me/.config/yarn/global/node_modules/torrentflix/bin/torrentflix
. (I'm using yarn
.)
ItzBlitz98 commented
After some research its because you are using yarn and i'm publishing from windows, This is apparently what happens in that scenario. I will try to publish future releases using Linux that should fix this issue.
smhmd commented
Is there an issue in https://github.com/yarnpkg/yarn about this to upvote?
ItzBlitz98 commented
I dont think its a yarn issue its npm/npm#2097 Not sure why only yarn is effected though
smhmd commented
Still have to do this every now and then:
echo $'#!/usr/bin/env node\nrequire(\'../lib/cli.js\');' > /home/me/.config/yarn/global/node_modules/torrentflix/bin/torrentflix