Describe the bug
当前官方文档中提供的安装命令为:
npm i -D naive-ui
但 naive-ui 是一个用于构建用户界面的 Vue 组件库,属于运行时依赖,必须在生产环境中被打包和加载。将其安装在 devDependencies 中会导致:
生产构建时可能无法正确引入或报错;
使用 Vite/Webpack 等工具时,若未显式配置,可能遗漏该包;
不符合 Node.js/npm 最佳实践(运行时依赖应放 dependencies)。
### Steps to reproduce
<img width="847" height="204" alt="Image" src="https://github.com/user-attachments/assets/6ff5acbc-e8a8-4233-97ea-8eebe4a953e5" />
### Link to minimal reproduction
这是文档问题,非代码 bug,无需复现仓库。 官方文档中错误地使用了 `npm i -D naive-ui`,正确应为 `npm install naive-ui`。
### System Info
```Shell
空
Used Package Manager
npm
Validations
Describe the bug
当前官方文档中提供的安装命令为:
Used Package Manager
npm
Validations