# Running a testnode with the TS SDK in a nodejs environment

**URL:** <https://forum.fuel.network/t/running-a-testnode-with-the-ts-sdk-in-a-nodejs-environment/8176>\
**Category:** TypeScript SDK\
**Created:** [January 20, 2025, 4:49pm UTC](https://forum.fuel.network/t/running-a-testnode-with-the-ts-sdk-in-a-nodejs-environment/8176 "2025-01-20T16:49:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulman176](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@paulman176](https://forum.fuel.network/u/paulman176)\
**Post date:** [January 20, 2025, 4:49pm UTC](https://forum.fuel.network/t/running-a-testnode-with-the-ts-sdk-in-a-nodejs-environment/8176/1 "2025-01-20T16:49:31Z")

</div>

Hey guys i dont know if this is the correct environment but we are working on a new protocol that we are going to release and we need our own fuel node. I tried spinning up my own test node and put it inside a VM (in a nodejs environment with the TS sdk) with these exact configurations:

```auto
import { launchTestNode } from "@fuel-ts/contract/test-utils"

const run = async () => {
  using launchedWithDefaultConfig = await launchTestNode()
  const { provider } = launchedWithDefaultConfig
  const { name } = await provider.fetchChain()
  console.log("Chain Name:", name)
}

run()

```

however when i run this i get the following error:

```auto
npx ts-node testNode/testNode.ts
using deprecated parameters for the initialization function; pass a single object instead
No PID available for the child process, unable to kill launched node

```

Am i doing something wrong with my imports maybe? I tried a lot of things already but nothing seems to solve it.

---

<div class="post-metadata">

**Author:** ![p.s](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/p.s/32/2491_2.png) [@p.s](https://forum.fuel.network/u/p.s)\
**Post date:** [January 21, 2025, 9:30am UTC](https://forum.fuel.network/t/running-a-testnode-with-the-ts-sdk-in-a-nodejs-environment/8176/2 "2025-01-21T09:30:10Z")

</div>

Hey @paulman176 👋

How are you setting up your VM? If you can share as much information as possible I can try an replicate this issue.

I understand these are you current versions:

- `node` 22.13.0
- `fuels` ^0.98.0
- `ts-node` ^10.9.2
