Skip to content

npm run dev failed with exit code 1 #100

@xxcbzxx

Description

@xxcbzxx

Summary

Steps to reproduce

  1. ssh to node and executed npx -y openclaw-studio@latest

Expected

Actual

node@73ab0a40ef70:/app$ npx -y openclaw-studio@latest
OpenClaw Studio Installer

Preflight checks
[OK] You have Node 24.14 (we recommend >= 22)
[OK] npm is available in your PATH
[OK] openclaw CLI is available in your PATH (recommended)
[OK] Found your OpenClaw config /home/node/.openclaw/openclaw.json
[OK] Local gateway at ws://127.0.0.1:18789 is reachable connection successful
[OK] Studio will target ws://127.0.0.1:18789 reachable now

Installing
Source: https://github.com/grp06/openclaw-studio.git
Target: /app/openclaw-studio

  1. Downloading OpenClaw Studio...
  2. Extracting archive...
  3. Installing dependencies...
    Gateway URL: ws://127.0.0.1:18789
    Token: configured (config gateway.auth.token)
    Studio settings written: /home/node/.openclaw/openclaw-studio/settings.json

Starting Studio
[native-runtime] mode=repair
[native-runtime] node=v24.14.0 abi=137
[native-runtime] node_exec=/usr/local/bin/node
[native-runtime] better-sqlite3 load: ok
[native-runtime] mode=repair
[native-runtime] node=v24.14.0 abi=137
[native-runtime] node_exec=/usr/local/bin/node
[native-runtime] better-sqlite3 load: ok
⚠ Installing TypeScript as it was not found while loading "next.config.ts".

Installing devDependencies (npm):

  • typescript

⨯ Failed to load next.config.ts, see more info here https://nextjs.org/docs/messages/next-config-err or
Error: Failed to transpile "next.config.ts".
at async main (server/index.js:60:3) {
[cause]: Error: Cannot find module 'typescript'
Require stack:

  • /app/openclaw-studio/node_modules/next/dist/build/next-config-ts/transpile-config.js
  • /app/openclaw-studio/node_modules/next/dist/server/config.js
  • /app/openclaw-studio/node_modules/next/dist/server/next.js
  • /app/openclaw-studio/server/index.js
    at async main (server/index.js:60:3) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/app/openclaw-studio/node_modules/next/dist/build/next-config-ts/transpile-config.js',
    '/app/openclaw-studio/node_modules/next/dist/server/config.js',
    '/app/openclaw-studio/node_modules/next/dist/server/next.js',
    '/app/openclaw-studio/server/index.js'
    ]
    }
    }
    npm run dev failed with exit code 1
    node@73ab0a40ef70:/app$

Environment

  • OS: debian
  • Node: 24
  • UI version/commit:
  • Gateway running? (yes/no)
    yes

Logs/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions