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

Getting /usr/bin/env: invalid option -- 'S' when I run athenna new #67

Closed
emuthomi opened this issue Mar 31, 2023 · 5 comments · Fixed by #68
Closed

Getting /usr/bin/env: invalid option -- 'S' when I run athenna new #67

emuthomi opened this issue Mar 31, 2023 · 5 comments · Fixed by #68
Assignees
Labels
bug Something isn't working

Comments

@emuthomi
Copy link

Version

latest

Steps to reproduce

I followed the docs at https://athenna.io/docs/getting-started/installation and did npm install -g @athenna/cli

But then running athenna new athenna-project --type httpshows the following error in terminal:

/usr/bin/env: invalid option -- 'S'

Expected behavior

A new project created

Actual behavior

error shown: /usr/bin/env: invalid option -- 'S'

Additional context

No response

Environment

System:
    OS: Linux 5.4 Ubuntu 18.04.6 LTS (Bionic Beaver)
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    Memory: 3.66 GB / 7.65 GB
    Container: Yes
    Shell: 4.4.20 - /bin/bash
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 8.19.4 - /usr/local/bin/npm
@emuthomi emuthomi added the bug Something isn't working label Mar 31, 2023
@emuthomi emuthomi changed the title Getting /usr/bin/env: invalid option -- 'S' when I run athenna new Getting /usr/bin/env: invalid option -- 'S' when I run athenna new Mar 31, 2023
@jlenon7 jlenon7 added this to Athenna Apr 1, 2023
@jlenon7 jlenon7 moved this to In Progress in Athenna Apr 1, 2023
@jlenon7
Copy link
Member

jlenon7 commented Apr 1, 2023

How you doing @emuthomi? Thank you so much for opening this. Actually, we are having the same problem when running on Windows, as you can see at #66.

Strange is how the CI was not able to catch these errors, mainly in the Linux environment like yours. I'll take a look at it

@jlenon7 jlenon7 linked a pull request Apr 1, 2023 that will close this issue
7 tasks
@jlenon7
Copy link
Member

jlenon7 commented Apr 1, 2023

I've merged a PR that might fix this issue, could you please try again mate?

@emuthomi
Copy link
Author

emuthomi commented Apr 1, 2023

I've merged a PR that might fix this issue, could you please try again mate?

Thanks for the quick response. I'll run the script again and report back.

@jlenon7
Copy link
Member

jlenon7 commented Apr 1, 2023

And please don't rely on the current documentation. I really apologize for that, but the project is still under development, and I've done a lot of breaking changes in the packages and they had a LOT of improvements. I'm even rewriting the documentation using Next.js and the Dracula UI here: https://github.com/AthennaIO/Docs/tree/feat/move-to-next.

Your help would be very welcome here in the project, we have a lot of work ahead... If you want to join our community on Discord, this is the invite link: https://discord.gg/vaZgRUkMsm

There on Discord, I can guide you and help with whatever you need to contribute to any feature. And again, I apologize for the problems, and thank you very much for your report, I think I would have never seen it since I'm using MacOS heheh.

@emuthomi
Copy link
Author

emuthomi commented Apr 1, 2023

So everything went well. I will continue the exploration and report any other issue I face.

? Do you wish to create a Laravel project style? Yes

[ GENERATING HTTP SERVER ]

→ Clone scaffold project from https://github.com/AthennaIO/AthennaIO.git in branch http 5687ms
→ Move project to your path 12ms
→ Install dependencies using npm 149583ms 
→ Remove unnecessary files and create .env files

[  success  ] Project successfully created.
╭────────────────────────────────────────────────╮
│     Run following commands to get started:     │
├────────────────────────────────────────────────┤
│                                                │
│     ❯ cd athenna-project                       │
│     ❯ ./node artisan test                      │
│     ❯ ./node artisan serve                     │
│                                                │
╰────────────────────────────────────────────────╯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants