ci010 / electron-vue-next

A starter template for using vue-next with the electron.
https://ci010.github.io/electron-vue-next/
191 stars 27 forks source link

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

Open mmikhan opened 3 years ago

mmikhan commented 3 years ago

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?

ci010 commented 3 years ago

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.