cluade 一直询问是否需要同意修改
linux 是正常的
删除.claude 文件夹
permission 加入* 允许。
还是一直询问要我是否同意。
于是我问 deepseek
npm update -g @anthropic-ai/claude removed 205 packages in 2s ??? 这是什么鬼 卸载我全部 npm 包? npm update -g @anthropic-ai/claude 我之前也执行过啊 没这个问题啊
![]() | 1 Ketteiron 44 天前 我也遇到过,任何 npm -g update xxxx 都会导致 npm 二进制所在位置删除 node_modules 下的所有包以及 npm/npx/corepack 等脚本文件,等于自己杀了自己,不过一直没找到引发问题的根源是什么,可能 windows 就是这么神经。 |
2 ntedshen 44 天前 ![]() https://github.com/npm/npm/issues/5050 不晓得怎么解,不过这个确实是老毛病。。。 |
![]() | 3 Ketteiron 44 天前 ![]() 搜了下还有这个 ctrl+c 被删掉全部包的倒霉蛋 https://github.com/npm/cli/issues/5006 这个问题至少被修过 3 次了,从 2014 年到 2025 年在 v10 上依然存在,但是很难让别人复现 另外这个帖子为什么发在了 Android 节点 |
![]() | 4 lyxxxh2 OP |
![]() | 5 caiyuan 37 天前 直接再安装一次就好了啊,用什么 update? npm i -g xxxx@latest |