Skip to content

Cannot run npm ci --prod with adapter-node #4585

@angryziber

Description

@angryziber

Describe the bug

adapter-node says that npm ci --prod should be used to run the build.
However, this command fails

Reproduction

npm ci --prod

Logs

> guidest@0.0.1 prepare
> svelte-kit sync

sh: svelte-kit: not found
npm ERR! code 127
npm ERR! path /app
npm ERR! command failed
npm ERR! command sh -c svelte-kit sync

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-04-10T11_03_37_215Z-debug.log
The command '/bin/sh -c npm ci --prod' returned a non-zero code: 127

System Info

Docker image node:16-alpine

Severity

serious, but I can work around it

Additional Information

Workaround: sed -i '/prepare/d' package.json && npm ci --prod

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.pkg:create-svelte

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions