如何在windows上通过命令行卸载node-gyp

How to Uninstall node-gyp on windows through command line

本文关键字:命令行 卸载 node-gyp windows      更新时间:2023-09-26

我想通过命令行卸载windows 8.1中的node-gyp,是否有任何方法可以卸载它,我尝试使用命令

npm uninstall node-gyp

从下面的链接我安装了node-gyp

链接到node-gyp

但它不为我工作,我得到以下错误

C:'Windows'system32>npm uninstall node-gyp

npm警告事件事件事件:没有这样的文件或目录,开放'C: ' Windows ' system32系统' pac凯奇。json '

npm WARN system32 No description

npm WARN system32没有存储库字段。npm WARN system32自述数据

npm WARN system32 No license field.

你需要确保你的工作目录在

nodejs'node_modules'npm

然后运行

npm uninstall node-gyp

,它应该成功卸载。