当前位置:   article > 正文

全局变量 Cannot find name ‘process‘. Do you need to install type definitions for node?_cannot find name 'process'. do you need to install

cannot find name 'process'. do you need to install type definitions for node

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在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/360104
推荐阅读
相关标签
  

闽ICP备14008679号