You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 😄
The text was updated successfully, but these errors were encountered:
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:
Same in the Node.js 9 image:
Contrary to yarn, npm doesn't seem to fail atleast on the CLI. npm just outputs a warning:
Though e.g.
pm2 install typescript
uses npm and on Node 8 or 9 it will actually fail 😄The text was updated successfully, but these errors were encountered: