require 关键字不适用于 angular,引发错误:src/app/app.component.ts(8,16): error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig.我该如何解决?其实我也用nodejs正确安装了它,但没有工作。
添加回答
举报
0/150
提交
取消
