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 -441359468


Similar Posts: