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

Failed to install using yarn on node 8 (mkdirp 1.0.3) #3412

Closed
polRk opened this issue Jan 29, 2020 · 7 comments
Closed

Failed to install using yarn on node 8 (mkdirp 1.0.3) #3412

polRk opened this issue Jan 29, 2020 · 7 comments

Comments

@polRk
Copy link

polRk commented Jan 29, 2020

Failed to install using yarn on node 8

"@graphql-codegen/cli@^1.11.2":
  version "1.12.1"
  resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-1.12.1.tgz#7d7535f0dc6f12285ec987dd7b734de5e5395f67"
  integrity sha512-ObbuUaBC48i8glFXcBNo9oBMfv9HZ4JQtP52UX6Ppv/KUOISQWCYvC1YmtWIkuVYRz65Ds2kHpNS9YknVf7eEQ==
  dependencies:
    mkdirp "1.0.3"

My firebase functions using node 8, and i can't install dependencies

[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.16.1"
@polRk
Copy link
Author

polRk commented Jan 29, 2020

I don't want to use --ignore-engines

@polRk
Copy link
Author

polRk commented Jan 29, 2020

⚠  functions[webhooks-deleteBot(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}
⚠  functions[bots-viber(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}
⚠  functions[auth-userCreate(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}
⚠  functions[auth-userDelete(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}
⚠  functions[bots-telegram(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}
⚠  functions[webhooks-setupBot(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`yarn_install` had stderr output:\nerror [email protected]: The engine \"node\" is incompatible with this module. Expected version \">=10\".\nerror Found incompatible module\n\nerror: `yarn_install` returned code: 1", "errorType": "InternalError", "errorId": "EBA42403"}}

@ardatan
Copy link
Collaborator

ardatan commented Jan 29, 2020

We dropped Node 8 support because it is not LTS anymore, not only codegen but also the dependencies don't support Node 8 anymore. If you still want to use with Node 8, you can use older versions.

@ardatan ardatan closed this as completed Jan 29, 2020
@polRk
Copy link
Author

polRk commented Jan 29, 2020

Why stop supporting if the program runs on version 8 and 6? For what ? Isn't it better to support the largest number of users?

@ardatan
Copy link
Collaborator

ardatan commented Jan 29, 2020

Dependencies of codegen stopped supporting Node 8 and below as well. Also Node 8 is too old for ES6+ features etc. You can read this for more details. I recommend you to update your Node.
https://blog.risingstack.com/update-nodejs-8-end-of-life-no-support/

@polRk
Copy link
Author

polRk commented Jan 29, 2020

I recommend you to update your Node.

I can not update node version, because i using firebase cloud functions on node 8 (Node 10 in Beta and works worse )

@Urigo
Copy link
Collaborator

Urigo commented Feb 9, 2020

@polRk for now please keep using a bit older versions and everything would be fine.

I find it pretty bad that firebase cloud functions only support a Node version that is not maintained anymore.
Any special reason why not move to another cloud solution?
I also hope they would just update themselves soon

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

Successfully merging a pull request may close this issue.

3 participants