静守幸福

关注

Cannot find name 'require'. Do you need to type definitions for node? Try `npm i @types/node

静守幸福

关注

阅读 24

2023-04-18


angular项目,打算通过require使用js,报错:

Cannot find name

解决办法:找到tsconfig.app.json文件,在types中加入"node"即可

Cannot find name

相关推荐

ZGtheGreat

vue3+uni-app 报错TS2591: Cannot find name ‘require’. Do you need to install type definitions for node?

ZGtheGreat 128 0 0

灯火南山

node_modules appears empty, you may need to run `npm install`

灯火南山 111 0 0

小布_cvg

npm报错 Cannot find module ‘@vuepress\core\node_m

小布_cvg 48 0 0

_LEON_

/etc/rancher/node/password try enabling a unique node name with the --with-node-id flag

_LEON_ 133 0 0

kiliwalk

Error: Cannot find module ‘node-sass‘

kiliwalk 164 0 0

承蒙不弃

npm 报错 'cannot find module‘internal/util/types'解决方法

承蒙不弃 138 0 0

RIOChing

下载完Node.js后,npm -v报Cannot find module“yallist“错

RIOChing 56 0 0

七千22

laravel npm run watch报错You may need an appropriate loader to handle this file type

七千22 66 0 0

天蓝Sea

如何解决使用npm出现Cannot find module ‘XXX\node_modules\npm\bin\npm-cli.js’错误

天蓝Sea 43 0 0

精进的医生

【ERROR in Cannot find module 'node-sass'】【this.getResolve is not a function】

精进的医生 93 0 0

精彩评论(0)

0 0 举报