-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Setup script fails for new devs #7521
Comments
Related data
Involved lines in 21 NODE_VERSION=$(cat .node-version)
[…]
29 # Check node version
30 if ! node --version | grep $NODE_VERSION > /dev/null; then
31 printf "${RED}Open Food Network requires node ${NODE_VERSION}${NO_COLOR}. Have a look at: https://github.com/nodenv/nodenv\n"
32 exit 1
33 fi Meanwhile CircumventionEdit the Drawbacks: this might bring some additional inconvenience regarding git commits. Required Actions
Notes and References
|
I would:
|
I'll remove this check from the setup script entirely later, but regarding the wiki documentation on Ubuntu it's done. |
FYI: On a Ubuntu 20.04 machine I was able to start the project by following the instructions, however I did not run the If you are interested, this is my
And the output of the command used in Github Actions (CI) test:
|
Description
A couple of potential contributors have hit errors when running the setup script under
script/setup
(as directed to in the wiki). the script checks for a really outdated version of Node (5.12.0). We actually use 14.x.x in production and in CI, so this check is a bit ridiculous. The setup script fails if that exact version is not present.We use yarn now, which should work fine with any modern version of Node.
We should just do a basic check that node is installed, and continue if it is. Also the wiki might need an update.
Expected Behavior
New devs can run the setup script as per the wiki.
Actual Behaviour
Setup script fails.
Steps to Reproduce
Animated Gif/Screenshot
Workaround
Severity
Your Environment
Possible Fix
The text was updated successfully, but these errors were encountered: