1、首先全局安装yalcnpm install yalc -g#或者yarn install yalc -g2、在npm组件库项目中执行下面命令yalc publish3、在依赖该组件的项目中执行下面命令yalc add my-npmPackage4、后期npm组件包build之后直接yalc p....
To uninstall a package you have previously installed locally (using npm install <package-name> in the node_modules folder, run
xxx并没有从package.json中去掉:➜ HeadquarterReport git:(permission-control) ✗ npm remove element-ui
删除本地模块时你应该思考的问题:是否将在package.json上的相应依赖信息也消除?