TS6053 构建 Swashbuckle.AspNetCore

Posted

技术标签:

【中文标题】TS6053 构建 Swashbuckle.AspNetCore【英文标题】:TS6053 Building Swashbuckle.AspNetCore 【发布时间】:2020-12-30 15:19:24 【问题描述】:

我克隆了 Swashbuckle.AspNetCore 并正在尝试构建它 但是缺少 node_modules 文件夹

我运行npm i redoc 并得到以下输出

npm WARN saveError ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Windows\System32\package.json'
npm WARN redoc@2.0.0-rc.40 requires a peer of mobx@^4.2.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN redoc@2.0.0-rc.40 requires a peer of react@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc@2.0.0-rc.40 requires a peer of react-dom@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN redoc@2.0.0-rc.40 requires a peer of styled-components@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react@6.3.0 requires a peer of mobx@^5.15.4 || ^4.15.4 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react@6.3.0 requires a peer of react@^16.8.0 || 16.9.0-alpha.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-tabs@3.1.1 requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/react-dropdown-aria@2.0.11 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/react-dropdown-aria@2.0.11 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/react-dropdown-aria@2.0.11 requires a peer of styled-components@^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite@2.2.1 requires a peer of mobx@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN mobx-react-lite@2.2.1 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN System32 No description
npm WARN System32 No repository field.
npm WARN System32 No README data
npm WARN System32 No license field.

我应该如何进行?

【问题讨论】:

***.com/questions/50895493/… 【参考方案1】:

在运行命令之前,我需要位于 Swashbuckle.AspNetCore.ReDoc 文件夹中

npm i redoc

【讨论】:

以上是关于TS6053 构建 Swashbuckle.AspNetCore的主要内容,如果未能解决你的问题,请参考以下文章

找不到角度打字稿打字参考路径

HDU 6053 - TrickGCD

HDU 6053 TrickGCD(分块)

hdu 6053 TrickGCD 筛法

HDU 6053 TrickGCD 容斥

hdu6053(莫比乌斯+容斥+分块)