-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Syntax error when running with sudo #2266
Comments
I'm going to guess your node version is not what you expect with sudo because you're using nvm or something alike. If you want to preserve the node version you need to use |
Context Im running into the same problem with or without sudo. I was able to reproduce it outside our project by just creating a file that just imports joi 17.0.0. I downgraded to 16.1.0 and it works
|
Joi 17 release notes explicitly specified that it's only compatible with node 12+, so as expected. |
Ah, sorry about that. Tried to find the release notes before commenting but couldn't find them. Would it be possible to add the compatible node versions in the package.json? |
Unlikely, we had too many problems with either npm or yarn when doing that. |
And I forgot, but you do have that information here: https://hapi.dev/family/joi/. |
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
What result did you expect?
run successfully
The text was updated successfully, but these errors were encountered: