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

使用npmunistall 无法卸载依赖 #235

Open
Jirapo opened this issue Jun 5, 2017 · 2 comments
Open

使用npmunistall 无法卸载依赖 #235

Jirapo opened this issue Jun 5, 2017 · 2 comments

Comments

@Jirapo
Copy link

Jirapo commented Jun 5, 2017

/lib/uninstall.js 中要移除bin目录文件使用了以下判断:
for (const file in pkgInfo.bin) { ... }
但是bin字段有可能是字符串,比如 mkdirp 中的 bin:"bin/cmd.js", 所以这里有问题。
另外,.npminstall 里面的依赖不会被移除。

@fengmk2
Copy link
Member

fengmk2 commented Jun 5, 2017

请给一个可重现问题的例子?

@Jirapo
Copy link
Author

Jirapo commented Jun 6, 2017

npminstall-demo.zip

详情请查看 demo 里面的 readme。

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

No branches or pull requests

2 participants