Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot run scripts on Mac #456

Open
malixswoop opened this issue Jan 25, 2024 · 6 comments
Open

[BUG] Cannot run scripts on Mac #456

malixswoop opened this issue Jan 25, 2024 · 6 comments
Assignees

Comments

@malixswoop
Copy link
Contributor

Describe the bug
Running a script (e.g. yarn dev) on Mac results in an error

To Reproduce
Steps to reproduce the behavior:

  1. Install on Mac with Node 18
  2. run yarn dev
  3. See error

Expected behavior
No error and bin/{command}/index.js should run

Screenshots
image

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

@treoden
Copy link
Collaborator

treoden commented Jan 26, 2024

Hi @malixswoop ,

Have you added the script to your packages.json?

@malixsys
Copy link

Yes.
Happens on yarn dev...
I suspect a windows vs mac thing 🤔

@treoden
Copy link
Collaborator

treoden commented Jan 26, 2024

Can you share your packages.json file here @malixsys , @malixswoop

@malixsys
Copy link

malixsys commented Jan 26, 2024

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

@chennighan
Copy link

@malixswoop Have you tried using npm and not yarn?

@malixswoop
Copy link
Contributor Author

@malixswoop Have you tried using npm and not yarn?

@chennighan I will try if I come back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants