unity-packman icon indicating copy to clipboard operation
unity-packman copied to clipboard

Line endings cause problem on OSX (and other *nix?)

Open Gounlaf opened this issue 7 years ago • 0 comments

Hi,

On OSX, calling unity-packman cause this error env: node\r: No such file or director; but the shebang is correct...

After some digging, I found this issue https://github.com/npm/npm/issues/12371. IMO, you should for EOL as LF with a .gitattributes, with this kind of content

# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.js text eol=lf

I don't know how to "test" this solution with NPM... (without publish multiple versions of this library :x)

Thanks for your work!

Regards

Gounlaf avatar Jun 23 '17 22:06 Gounlaf