Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

strapi/base:14: Graphql plugin with 14.17 dependency; strapi base uses 14.16 #329

@kyuumeitai

Description

@kyuumeitai

If you try to use docker/base in your Dockerfile and installing Graphql plugin on docker-entrypoint.sh after, you'll see the graphql-upload dependency demands 14.17.0 https://github.com/jaydenseric/graphql-upload/blob/master/package.json#L45

I ended removing nodejs link on my docker-entrypoint.sh and installing manually with curl similar to strapi/base does:

rm -rf /usr/local/bin/nodejs

/bin/sh -c ARCH= && dpkgArch="$(dpkg --print-architecture)"   && case "${dpkgArch##*-}" in     amd64) ARCH='x64';;     ppc64el) ARCH='ppc64le';;     s390x) ARCH='s390x';;     arm64) ARCH='arm64';;     armhf) ARCH='armv7l';;     i386) ARCH='x86';;     *) echo "unsupported architecture"; exit 1 ;;   esac   && set -ex   && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner  && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz"  && ln -s /usr/local/bin/node /usr/local/bin/nodejs   && node --version   && npm --version

That way you can install strapi-plugin-graphql without further issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions