Tag Archives: env: node\r: No such file or directory

node env: node\r: No such file or directory

Recently, I was writing a command line tool
it works normally when using NPM link . However, after Ctrl + s is saved, an error env: node \ R: no such file or directory is reported. You need to NPM link again. Do you have to link every time you modify it
I’m surprised that the target file of link is the same as the source file. Why can’t it be saved

Causes and Solutions

Pay attention to the character ‘\ R’. The parser actually takes the newline character as part of the path! Embarrassing
change the line feed method CRLF to LF

Reference

https://github.com/TarikHuber/rmw-shell/issues/20#issuecomment -441359468

node env: node\r: No such file or directory

Recently, I am writing a command line tool
when using NPM link , it can work normally. However, if you save Ctrl + s and run it again, you will report an error env: node/R: no such file or directory. You need to NPM link again. Do you need to link every time you modify it
it’s strange that the target file is the same as the source file, so why can’t it be saved

Causes and Solutions

Pay attention to the character ‘R’. The parser takes the newline character as part of the path! Embarrassed
change CRLF to LF

Reference

https://github.com/TarikHuber/rmw-shell/issues/20#issuecomment -441359468