Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript - Cannot find name 'process'

I created a new npm project with npm init. I have typescript and ts-node installed globally. I also installed @types/node to my devDependencies, but I still get a problem "Cannot find name 'process'. Do you need to install type definitions for node? Try npm i --save-dev @types/node.ts(2580)".

Any ideas on why this is happening? Thanks in advance.

like image 400
Didzis Avatar asked Jan 29 '26 06:01

Didzis


1 Answers

This will solve your work:

npm install @types/node --save-dev
like image 111
Bash Avatar answered Jan 31 '26 22:01

Bash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!