检查项目根目录下的project.config.json文件 正确配置如下: "packNpmManually": true, //一定要为true "packNpmRelationList": [ { "packageJsonPath": "./package.json", "miniprogramNpmDistDir": "./miniprogram" } ],