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
Similar Posts:
- node env: node\r: No such file or directory
- [Solved] Expected linebreaks to be ‘LF’ but found ‘CRLF’.
- [How to Solve Error] warning: LF will be replaced by CRLF in README.md.
- Git Warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LF
- [git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LF
- Conflict between git windows and MAC newline
- [Solved] SyntaxError: unexpected character after line continuation character
- One line command / usr / bin / Perl ^ m: bad interpreter
- Shell script error newline syntax error near unexpected token
- On branch master nothing to commit, working tree clean ERROR: Repository not found. fatal: Could …