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.
安装@types/node
- npm i --save-dev @types/node
- yarn add -D @types/node
- pnpm add -D sax @types/node
在tsconfig文件中,types中添加node