发布npm包在要发布包的对应目录,右键使用Vscode打开,依次执行如下代码 npm init(初始化和git init差不多)1234567891011121314151617181920212223name: (mtmap)version: (1.0.0)description: xxxxxentry point: (/dist/gaia.demo.map.js)test command:git repository:keywords:author: allanhaolicense: (ISC) MITAbout to write to E:\github\mtmap\package.json:{ "name": "mtmap", "version": "0.1.0", "description": "xxxxx", "main": "/dist/gaia.demo.map.js", "s ...