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

Cannot install with yarn on Node 8 or 9 #941

Closed
Darep opened this issue Jan 12, 2020 · 1 comment
Closed

Cannot install with yarn on Node 8 or 9 #941

Darep opened this issue Jan 12, 2020 · 1 comment

Comments

@Darep
Copy link

Darep commented Jan 12, 2020

The yn package was updated to v4.0.0 in [email protected]. It seems that [email protected] now requires node >= 10 so ts-node v8.6.0 and newer might error when installing/starting on Node.js 8 or 9. At least when using yarn.

For example, on a fresh Node.js v8.12 Docker container:

$ docker run --rm -it node:8.12-alpine yarn add ts-node@latest
yarn add v1.9.4
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Same in the Node.js 9 image:

$ docker run --rm -it node:9 yarn add ts-node@latest
yarn add v1.5.1
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided in "/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Contrary to yarn, npm doesn't seem to fail atleast on the CLI. npm just outputs a warning:

npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.12.0","npm":"6.13.6"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]

Though e.g. pm2 install typescript uses npm and on Node 8 or 9 it will actually fail 😄

@cspotcode
Copy link
Collaborator

Closing as a duplicate of #940.

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

2 participants