Skip to content

Needed to run: npm install --save-dev @types/node in order for the server to build correctly #43

@surfnerd

Description

@surfnerd

I needed to run npm install --save-dev @types/node in the Server~ directory to allow the server to start correctly.

I'm on a Mac M3Max on macOS 15.5 (24F74).

❯ npm run build

> mcp-unity-server@1.0.0 build
> tsc

error TS2688: Cannot find type definition file for 'node'.
  The file is in the program because:
    Entry point of type library 'node' specified in compilerOptions

  tsconfig.json:14:15
    14     "types": ["node"]
                     ~~~~~~
    File is entry point of type library specified here.


Found 1 error.

❯ npm install --save-dev @types/node

added 118 packages, and audited 119 packages in 3s

20 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
❯ npm run build

> mcp-unity-server@1.0.0 build
> tsc

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions