微信小程序npm构建报错 NPM packages not found

project.config.json
删去

{
    "miniprogramRoot": "miniprogram/"
}

添加

{
    "packNpmManually": true,
    "packNpmRelationList": [
      {
        "packageJsonPath": "./package.json",
        "miniprogramNpmDistDir": "./miniprogram/"
      }
    ]
}

你可能感兴趣的:(微信小程序)