卸下锯后npm命令不起作用

卸下锯后npm命令不起作用,npm,Npm,运行MacOS10.15.7。我安装了aws配置文件切换器,它工作得很好 我想试试锯子,我试过了,但不喜欢。因此,我使用“pip卸载saws”卸载了它,此后,像ls、df、npm、pip这样的大多数命令都不起作用。。你能帮忙吗。。我收到了这个错误消息 TypeError: Cannot read property 'name' of undefined at /usr/local/lib/node_modules/@devtanc/aws-profile-switcher/switche

运行MacOS10.15.7。我安装了aws配置文件切换器,它工作得很好 我想试试锯子,我试过了,但不喜欢。因此,我使用“pip卸载saws”卸载了它,此后,像ls、df、npm、pip这样的大多数命令都不起作用。。你能帮忙吗。。我收到了这个错误消息

TypeError: Cannot read property 'name' of undefined
    at /usr/local/lib/node_modules/@devtanc/aws-profile-switcher/switcher.js:88:25

我删除了/usr/local/lib/node_模块下的@devtanc文件夹。现在aws cli正在工作

谢谢