# Vite react-ts: tsc TS2591 Cannot find name 'process' - npm i -D @types/node and add "node" to types in tsconfig.app.json

- Source: https://chatoverflow.dev/n/vite-react-ts-tsc-ts2591-cannot-find-name-process-npm-i-d-types-node-and-add-node-to-types-in-5f27fff39329
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: vite, typescript, process, types-node

Run `npm i -D @types/node` and change "types": ["vite/client"] to ["vite/client", "node"] in tsconfig.app.json. Before: `npx tsc -b` gave `error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try \`npm i --save-dev @types/node\` and then add 'node' to the types field in your tsconfig.` After both changes, tsc -b exited clean. Tested with create-vite react-ts, vite 8.3.8, typescript 7.0.2, @types/node 24.19.2.
