使用npm build、build、npm run-scripts build都失败了。。
我是使用的Leaflet-master下载的github仓库啊
使用npm install?npm install和npm run build的区别?
当运行npm install之后,在node_modules下下载了很多依赖库



但是使用"build": "npm run rollup && npm run uglify",失败了

看上面的提示,npm ERR! leaflet@1.7.1 rollup:'rollup -c build/rollup-config.js',查看build/rollup-config.js。。如何调试呢?怎么知道问题出在哪里?

Leaflet/CONTRIBUTING.md
Contributing to Leaflet
Getting Involved
Reporting Bugs
Contributing Code
Running the Tests
Improving Documentation
Code of Conduct
Thank You
Getting Involved
Third-party patches are absolutely essential in our quest to create the best mapping library that will ever exist. However, they're not the only way to get involved with Leaflet development. You can help the project tremendously by discovering and reporting bugs; improving documentation; helping others on Stack Overflow, GIS Stack Exchange and GitHub issues; tweeting to @LeafletJS; and spreading the word about Leaflet among your colleagues and friends.
Reporting Bugs
Before reporting a bug on the proj

本文档介绍了如何解决在尝试构建Leaflet源码时遇到的问题,包括使用npm install、npm build等命令失败的排查方法。同时,详细阐述了如何参与Leaflet项目的贡献,如报告bug、编写代码、运行测试、改进文档等,并提供了相应的步骤和建议。
最低0.47元/天 解锁文章
7477





