问题描述
我克隆了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 [email protected] requires a peer of mobx@^4.2.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^16.8.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of styled-components@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of mobx@^5.15.4 || ^4.15.4 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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 [email protected] requires a peer of react@^16.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN @redocly/[email protected] requires a peer of styled-components@^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of mobx@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] 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.
我应该如何进行?
解决方法
在运行命令之前,我需要先进入Swashbuckle.AspNetCore.ReDoc文件夹
npm i redoc