The reason for the failure to build

vue init mpvue/mpvue-quickstart projectName

Json miniprogramRoot: “dist/wx/” cannot build NPM because it has a path specified in project.config.json

Removing the miniProgramRoot will enable the build, but it will also create a new problem, as the small program will not find the startup entry.


The solution

Manually copy dependencies from node_modules to the static directory