electron-vue-next icon indicating copy to clipboard operation
electron-vue-next copied to clipboard

`npm init electron-vue-next` shows error `env: node\r: No such file or directory`

Open mmikhan opened this issue 4 years ago • 1 comments

It's a weird issue and not sure if this is something specific to my local npm or something else. Whenever I run npm init electron-vue-next, it shows an error env: node\r: No such file or directory. The issue occurs with the Yarn as well yarn create electron-vue-next.

However, on a different machine, it works fine npm init electron-vue-next. My local Node version is v15.12.0.

Any idea what's causing the issue?

mmikhan avatar Mar 27 '21 06:03 mmikhan

hmmmm, I'll try to see if there is any change to trigger this.

Do you have any detailed log for this? The script is not minimized, so maybe you can find a readable call stack?

Updated:

Once I searched for similar issue, it seems my 0.0.9 package is using CRLF ending for some reason. I published 0.0.10 now, and it should use LF.

You can try it again.

ci010 avatar Mar 29 '21 02:03 ci010