What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Good morning, We want to setup a project with the PHP 8.0 alpine docker container from Spryker ```im

USSJ0JX8X
USSJ0JX8X Posts: 14 🧑🏻‍🚀 - Cadet

Good morning,
We want to setup a project with the PHP 8.0 alpine docker container from Spryker

image:
    tag: spryker/php:8.0-alpine3.13

But we get the following error on frontend:project:install-dependencies

Install Project dependencies
[info] npm
[info]  WARN
[info]  prepare removing existing node_modules/ before installation

[info] 


  core-js@3.4.8 postinstall /data/node_modules/core-js

Does anyone have an idea what we can do to fix this?
The troubleshooting.md doesn't really help in this case.

Comments

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 🧑🏻‍🚀 - Cadet

    can you try to delete node_modules/ folder and then try again? That helps me when I get similar errors suddenly

  • USSJ0JX8X
    USSJ0JX8X Posts: 14 🧑🏻‍🚀 - Cadet

    I don't have a node_modules folder because that happens on npm install

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 🧑🏻‍🚀 - Cadet

    So you’re doing that from scratch? You may not see node_modules on your host machine, but it is present inside the container. So I do docker/sdk cli rm -rf node_modules and try again

  • USSJ0JX8X
    USSJ0JX8X Posts: 14 🧑🏻‍🚀 - Cadet

    Sadly, we have the same behavior

  • USSJ0JX8X
    USSJ0JX8X Posts: 14 🧑🏻‍🚀 - Cadet

    I tried it with the B2B demo shop too.
    Same behavior...

  • USSJ0JX8X
    USSJ0JX8X Posts: 14 🧑🏻‍🚀 - Cadet

    I didn't adjust the YAML files.
    There is still this configuration:

    image:
      tag: spryker/php:7.3-alpine3.12