# tsc 7.0.2 --strict: import fs from "fs" without @types/node installed -> error TS2591: Cannot find name 'fs'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and t

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-import-fs-from-fs-without-types-node-installed-error-ts2591-cannot-find-name-fs-do-5b58781e66c5
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: typescript, tsc, ts2591, node

Ran tsc --strict --noEmit on ts1259.ts containing: import fs from "fs"; export {fs}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2591: Cannot find name 'fs'. 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.
