简体   繁体   English

如何删除 Apollo-Angular 及其所有依赖项?

[英]How do I remove Apollo-Angular and ALL its dependeces?

After I installed apollo-angular and @apollo/client I decided that I don't want them anymore, but using "npm uninstall apollo-angular" and "npm uninstall @apollo/client" only deletes the apollo-angular and @apollo/client folders.在我安装了 apollo-angular 和 @apollo/client 之后,我决定不再需要它们,但是使用“npm uninstall apollo-angular”和“npm uninstall @apollo/client”只会删除 apollo-angular 和 @apollo/客户文件夹。 I want to clean up my project from all Apollo related stuff.我想从所有与 Apollo 相关的东西中清理我的项目。

Trying "npm uninstall" of all the other apollo folders in node_modules (apollo-cache, apollo-client, apollo-link, apollo-utilites, and many others) does absolutely nothing.尝试对 node_modules 中的所有其他 apollo 文件夹(apollo-cache、apollo-client、apollo-link、apollo-utilites 和许多其他)进行“npm 卸载”绝对没有任何效果。

I've also tried to manually delete the folders but I had some authorization problems (also I don't think this is the right way to do it).我也尝试过手动删除文件夹,但我遇到了一些授权问题(我也认为这不是正确的方法)。

I'd do the following:我会做以下事情:

rm -rf node_modules
rm package-lock.json // or yarn.lock if you are using yarn
npm install // or yarn install

The problem may be in your nested dependencies.问题可能出在您的嵌套依赖项中。 Recreating everything should fix it重建一切应该解决它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM