项目中使用本地npm包

2,123 阅读1分钟
1. package.json文件中
 "dependencies": {
    "mumway-basic": "file:../mumway-basic"
  },
2. cnpm i下载包到该项目