pandolajs / pandora-boilerplate-wechat

微信小程序脚手架
https://juejin.im/post/5c7de1f9e51d457cb60884fc
MIT License
156 stars 22 forks source link

安装vant-weapp的组件失败 #3

Open zengyuanqiu opened 5 years ago

zengyuanqiu commented 5 years ago

报错如下 Install component field fail. You can try cmd: 'cli.js install field --no-cache' to fix it.

dancon commented 5 years ago

@zengyuanqiu 首先非常抱歉这么晚回复你

我自己安装了下,没有遇到你的这个问题,不知道你是这么安装的,是否可以提供更详细的操作过程,通常在项目初始化完成后,通过以下命令来装 vant-weapp 的组件,比如我们要安装 dialog

## 进入到项目根目录
pa i dialog

如果是第一次安装结果如下:

image

解释下,在微信小程序项目中,安装组件,我会先去下载 vant-weapp 的包到本地缓存,然后在从缓存中找改组件然后递归的寻找其依赖

不知上述的回复是否对你遇到的问题有所帮助,如果问题依旧,可以提供更加详细的操作路径和错误日志。

littlebaozi commented 5 years ago

Install component dialog fail. [15:48:24] You can try cmd: 'cli.js install dialog --no-cache' to fix it. Error: mkdirs fails...

windows报错 wsl正常