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

我完全不敢相信,竟然有如此奇葩的包 #62

Open
ohroy opened this issue Feb 26, 2022 · 1 comment
Open

我完全不敢相信,竟然有如此奇葩的包 #62

ohroy opened this issue Feb 26, 2022 · 1 comment

Comments

@ohroy
Copy link
Owner

ohroy commented Feb 26, 2022

root-check
这个包会检测到用户是否在root权限下运行,然后尽可能的降低权限,问题是关键是这一切是静默的,你根本不知道发生了什么。

就在刚才,我准备制作一个vscode插件,开始运行 yo code时,却提醒我没有权限。

fk, 我可是root用户啊,怎么可能没有权限,当时就怀疑是不是给我降权了,一番搜索后,果然找到了
yeoman/yo#348 (comment)

sed -i -e '/rootCheck/d' "${NPM_CONFIG_PREFIX}/lib/node_modules/yo/lib/cli.js"

这才发现了这个奇葩的包,关键yo还使用了它。
sindresorhus/root-check#1

无fuck可说

@ohroy
Copy link
Owner Author

ohroy commented Feb 26, 2022

我之所以root用户是因为wsl2环境下。

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

1 participant