小程序的WEPY框架安装,不兼容win32的问题?

在linux虚拟机里 成功安装了wepy,但是他的编译功能有点鸡肋,每次都要重新build,因此想在win主机上安装wepy,执行 yarn global add wepy-cli之后,提示

yarn global v1.5.1                                                                                                   
[1/4] Resolving packages...                                                                                          
[2/4] Fetching packages...                                                                                           
info fsevents@1.2.4: The platform "win32" is incompatible with this module.                                          
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.      
[3/4] Linking dependencies...                                                                                        
[4/4] Building fresh packages...                                                                                     
success Installed "wepy-cli@1.7.2" with binaries:                                                                    
      - wepy                                                                                                         
Done in 4.53s.    

也就是不兼容win32,。我的系统是win7 旗舰版64位的。。

阅读 3.9k
2 个回答

github 搜索 tencent/wepy 根据里面引导,用 NPM 去安装。。不能用yarn

这个我说点题外话,如果小程序都选择用框架来做了,建议用美团的mpvuewepympvue我都使用过,mpvue更加好用一些,尤其生命周期那里的设计,绝对够得上工业标准。wepy虽然在代码层面可以按照vue的风格进行开发,但是由于它的更新机制是脏检查,会导致代码中有很多显示地$apply()(类似ng1),而mpvue是基于vue的响应式更新。

里面的警告似乎不是说wepy不兼容吧,而是说它的依赖包不兼容。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题