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

Similar Posts: