Angular node_modules/@types 错误(服务生成问题)
Angular node_modules/@types Error while (Serve Build Issue)
在 npm 安装后, 当我尝试“ng build”时出现以下错误:
ERROR in node_modules/@types/node/globals.d.ts(713,19): error TS2304: Cannot find name 'bigint'.
node_modules/@types/node/ts3.6/base.d.ts(13,21): error TS2727: Cannot find lib definition for 'esnext.bigint'. Did you mean 'esnext.intl'?
node_modules/@types/node/util.d.ts(119,56): error TS2304: Cannot find name 'BigInt64Array'.
node_modules/@types/node/util.d.ts(120,57): error TS2304: Cannot find name 'BigUint64Array'.
尝试将 typescript 版本安装为 -
npm install typescript@">=3.1.1 <3.3"
在 npm 安装后, 当我尝试“ng build”时出现以下错误:
ERROR in node_modules/@types/node/globals.d.ts(713,19): error TS2304: Cannot find name 'bigint'.
node_modules/@types/node/ts3.6/base.d.ts(13,21): error TS2727: Cannot find lib definition for 'esnext.bigint'. Did you mean 'esnext.intl'?
node_modules/@types/node/util.d.ts(119,56): error TS2304: Cannot find name 'BigInt64Array'.
node_modules/@types/node/util.d.ts(120,57): error TS2304: Cannot find name 'BigUint64Array'.
尝试将 typescript 版本安装为 - npm install typescript@">=3.1.1 <3.3"