官方api https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html 

1、需要在小程序文件夹 npm init  

2、安装需要的npm包 ,先安装需要的npm 包在构建npm   否则会报错,没有npm包。

3、放飞自我

TAG标签: 微信小程序卸载npm

http://www.xiaochengxub.com/read-105068.html