How npm package referenced in the micro-letter applet in?

1. Open the project folder , select the directory, into cmd , where I is C: \ Users \ DELL \ Desktop \ aynu-police \ micro letter applet (here my folder names are not standardized, the following is not renamed, or if not corrected, it will complain, the pit solution in https://www.cnblogs.com/mmit/p/12590799.html )

 

 Enter , will open the command window,

 

 

2. In the command window, first perform initialization npm the init , Enter,

Then npm i vant-weapp -S --production

Successful results as shown below:

 

 

3. Then return to the small projects program, find a tool bar to construct npm , after building a successful (there will be a prompt to build successful, if not constructed successfully re npm i vant-weapp -S command in the box - production), the project will generate a file miniprogram_npm folder , inside the file it is to build a successful npm package

 

 

4. The final step in the details in local settings in check using npm module

 

 

Guess you like

Origin www.cnblogs.com/mmit/p/12590895.html