evershop
evershop copied to clipboard
[BUG] Cannot run scripts on Mac
Describe the bug
Running a script (e.g. yarn dev
) on Mac results in an error
To Reproduce Steps to reproduce the behavior:
- Install on Mac with Node 18
- run
yarn dev
- See error
Expected behavior No error and bin/{command}/index.js should run
Screenshots
Background (please complete the following information):
- NodeJS Version: 18
- Postgres Version: N/A
- EverShop Version: 1.0.0
- OS: Mac 14.1
- Browser N/A
Additional context
NODE_ENV=development node node_modules/@evershop/evershop/bin/dev/index.js
works just fine
Hi @malixswoop ,
Have you added the script to your packages.json?
Yes.
Happens on yarn dev
...
I suspect a windows vs mac thing 🤔
Can you share your packages.json file here @malixsys , @malixswoop
problem is probably this, which happens when I try to add those files to another git repo
warning: in the working copy of 'test_es/.evershop/build/admin/adminLogoutJson/server/entry.jsx', CRLF will be replaced by LF the next time Git touches it
maybe add a .gitattributes
to make it LF on github ?
https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/#a-simple-gitattributes-config
@malixswoop Have you tried using npm and not yarn?
@malixswoop Have you tried using npm and not yarn?
@chennighan I will try if I come back to it.