Skip to content

Deployment error missing deps #3074

@ShaMan123

Description

@ShaMan123

Environment information

System:
  OS: macOS 15.7.3
  CPU: (12) arm64 Apple M2 Max
  Memory: 6.43 GB / 32.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 22.18.0 - /Users/shaman123/.nvm/versions/node/v22.18.0/bin/node
  Yarn: 1.22.22 - /opt/homebrew/bin/yarn
  npm: 11.6.2 - /Users/shaman123/.nvm/versions/node/v22.18.0/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/auth-construct: 1.10.0
  @aws-amplify/backend: 1.19.0
  @aws-amplify/backend-ai: Not Found
  @aws-amplify/backend-auth: 1.9.0
  @aws-amplify/backend-cli: 1.8.1
  @aws-amplify/backend-data: 1.6.2
  @aws-amplify/backend-deployer: 2.1.4
  @aws-amplify/backend-function: 1.15.2
  @aws-amplify/backend-output-schemas: 1.7.1
  @aws-amplify/backend-output-storage: 1.3.2
  @aws-amplify/backend-secret: 1.4.2
  @aws-amplify/backend-storage: 1.4.2
  @aws-amplify/cli-core: 2.2.3
  @aws-amplify/client-config: 1.9.1
  @aws-amplify/data-construct: 1.16.3
  @aws-amplify/data-schema: 1.22.0
  @aws-amplify/deployed-backend-client: 1.8.1
  @aws-amplify/form-generator: 1.2.6
  @aws-amplify/model-generator: 1.2.2
  @aws-amplify/platform-core: 1.10.3
  @aws-amplify/plugin-types: 1.11.1
  @aws-amplify/sandbox: 2.1.4
  @aws-amplify/schema-generator: 1.4.1
  @aws-cdk/toolkit-lib: 1.6.1
  aws-amplify: 6.15.9
  aws-cdk-lib: 2.233.0
  typescript: 5.9.3
npm warn exec The following package was not found and will be installed: [email protected]
No AWS environment variables
No CDK environment variables

Describe the bug

Getting this error from the deployment logs.
This does not happen locally when running npm ci.
My backend is linux.

npm error code EUSAGE

npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
                                    
npm error Missing: @csstools/[email protected] from lock file

npm error Missing: @csstools/[email protected] from lock file

Running npm ls @csstools/css-parser-algorithms shows

└── (empty)

Reproduction steps

Follow https://docs.amplify.aws/javascript/start/manual-installation/ and deploy an amplify app.

Is amplify the recommended approach for full stack apps or has it been deprecated?

Adding @csstools/css-parser-algorithms and @csstools/css-tokenizer to deps makes the deployment succeed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions