1.在小程序根目录下打开cmd 输入npm init -f 初始化命令 -f 表示全部输入默认值 会生成一个package.json文件 2.继续输入命令:npm i vant-weapp -S --production 导入vant-weapp包 就完成了 相关文章: