vue2Leaflet使用 Vue2Leaflet-master 的demo

首先下载该demo

地址:https://github.com/KoRiGaN/Vue2Leaflet

下载后可以运行里面的例子,在examples文件夹内,该文件夹本身就是一个完整的项目

然后cmd到该路径,

cnpm install

报错如下

解决方法:
cnpm install eslint@^1.6.0

继续cmd,又报错如下

解决方法:
cnpm install eslint@^3.18.0

 继续cmd,不报错了,然后运行项目

 最后显示成功:

猜你喜欢

转载自www.cnblogs.com/yingyigongzi/p/10741839.html
今日推荐