Skip to main content

Unexpected npm Usage During Build Despite Using pnpm in Platform.sh

Comments

2 comments

  • Chad Carlson

    Hello! That is strange, as the inclusion of build.flavor: none should block that default npm install behavior in favor of what you have in your build hook. If you can share a project ID (feel free to open a support ticket as well where we can follow up) we can take a closer look at the activity.

    PS: Setting PORT will have no affect. All apps on Platform.sh run on port 8888, and PORT=8888 will be exposed automatically within the container no matter if you set it like you have here. 

    0
  • Khaled Abdalbakii

    Hello,

    Thank you for your prompt response. I appreciate your assistance. I have double-checked the configuration, and I can confirm that I have build.flavor: none included in my platform.app.yaml. Despite this, npm is still being used during the build process instead of pnpm, which is causing dependency resolution errors.

    Here is the project ID for further investigation: fy56tgf7c3v4k.

    Please let me know if there is any additional information you need or any further steps I should take. I look forward to your assistance in resolving this issue.

    Thank you!

    Khaled

    0

Please sign in to leave a comment.