Search code examples
typescriptnpmtypes

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.


Solution

  • This will solve your work:

    npm install @types/node --save-dev