Cursor Cloud Agent Setup Not Installing Dependencies (npm ci --include=dev)

Hi, I am trying to setup Cursor Cloud agents but when i run them I keep running into an issue - The agent environment does not have my dependencies installed.

This is my snapshot: snapshot-20260111-7176d6d7-ae9f-49a6-a7a7-9613371da9b1

This is my startup script which I assume the agent environment isn’t running.

```
#!/usr/bin/env bash

set -e

echo “:rocket: Starting environment setup…”

echo “:package: Installing dependencies (including dev deps)…”

npm ci --include=dev

echo “:brick: Initialising bd…”

bd init

echo “:stethoscope: Running bd doctor (auto-fix enabled)…”

bd doctor --fix -y

echo “:counterclockwise_arrows_button: Syncing bd…”

bd sync

echo “:white_check_mark: Startup complete — environment ready”
```

I have tried the following Runtime configs:

Attempt 1:

  • Install Script: Null
  • Start Script: ./.cursor/startup.sh

Attempt 2:

  • Install Script: ./.cursor/startup.sh
  • Start Script: Null

Attempt 3:

  • Install Script: cd /workspace ./.cursor/startup.sh
  • Start Script: cd /workspace ./.cursor/startup.sh
  • Default Terminal
    • Startup Script
    • cd /workspace ./.cursor/startup.sh

This is my package-lock.json showing vitest is present

Cloud Agents use .cursor/environment.json to configure install and startup commands.

See the Cloud Agents documentation for the full environment.json spec and setup flow.