macos使用wepy出现找不到编译器:wepy-compile
2019-03-13 本文已影响0人
jjjkkkhhhggg
mac系统下使用wepy build后出现如下错误提醒,提示没有wepy-compiler-less

回头看cnpm install 里有一条warning警告

peerDependencies WARNING wepy-compiler-less@^1.3.10 requires a peer of less@^3.8.1 but none was installed
原来是wepy-compiler-less依赖于less
使用cnpm install less 再执行cnpm install就可以安装wepy-compiler-less了
ps:这应该算是wepy的一个bug吧