Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【备忘】npm link 调试本地模块 #10

Open
codezyc opened this issue Nov 1, 2017 · 1 comment
Open

【备忘】npm link 调试本地模块 #10

codezyc opened this issue Nov 1, 2017 · 1 comment
Labels

Comments

@codezyc
Copy link
Owner

codezyc commented Nov 1, 2017

使用npm link实现链接某个开发中的npm 模块到项目中,避免每次升级或修复bug后都重新安装的蛋疼操作

先去到模块目录,把它 link 到全局

cd path/to/my-utils
npm link

再去项目目录通过包名来 link

cd path/to/my-project
npm link my-utils

参考链接

你所不知道的模块调试技巧 - npm link

@codezyc codezyc added the npm label Nov 1, 2017
@qq912276337
Copy link

qq912276337 commented Oct 9, 2018

楼主你好 有个npm问题想咨询一下可以留个QQ吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants