Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Doesn't seem to be very happy with Node 9 upgrade #1

Open
inadarei opened this issue Jul 11, 2018 · 3 comments
Open

Doesn't seem to be very happy with Node 9 upgrade #1

inadarei opened this issue Jul 11, 2018 · 3 comments

Comments

@inadarei
Copy link

Getting warning:

warning You are using Node "9.0.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || ^8.0.0"

Too early to upgrade?

@krystianity
Copy link
Member

Updating to node 9 or 10 is not possible as the "zookeeper" (native) dependency will not compile with these node versions.

@inadarei
Copy link
Author

I am not sure what you mean by that @krystianity since current master branch of Kafka-Rest is already pointing to Node 9 https://github.com/nodefluent/kafka-rest/blob/master/Dockerfile#L1

According to commit logs @yacut made that switch on Nov7 of last year 854834b

@john-goldsmith
Copy link

john-goldsmith commented Oct 3, 2018

Any update here? I'm running into the same issue.

For anyone else who stumbles across this, change Dockerfile:1 from FROM node:alpine to FROM node:8-alpine to resolve the issue. This change would also need to be replicated in the kafka-rest-ui repo since it also packages up the API.

Stack trace when running yarn run kafka:build:

yarn install v1.9.4
[1/4] Resolving packages...
[2/4] Fetching packages...
(node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Service 'kafka-rest-ui' failed to build: The command '/bin/sh -c apk update 	&& apk add --no-cache libcap bash curl git nginx gettext apache2-utils 	&& ln -sf /dev/stdout /var/log/nginx/access.log     && ln -sf /dev/stderr /var/log/nginx/error.log     && yarn install' returned a non-zero code: 1
error Command failed with exit code 1.

The line The engine "node" is incompatible with this module. Expected version ">=4 <=9". is the key part.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants