The project integrates NPM through NPM

  1. If package.json is not available locally, run the following command and press Enter to initialize the environment and generate package.json. If the package.json file exists, it will be overwritten and generated again
npm init
Copy the code
  1. In the root directory of the project, where the project.config.json file is located, run the following command
npm i @vant/weapp -S --production
Copy the code
  1. Build through applets development tools

Added: Specify the Vant version

NPM i@vant /[email protected] -s --productionCopy the code