无法全局卸载此 node.js 程序包,因为安装位置已被删除
Failed to uninstall this node.js package globally because the installed location has been deleted
我试图在全局范围内删除此 node.js 程序包 ibkr-api
$ npm uninstall -g ibkr-api
我收到以下错误。
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\Inv\Programming\node.js\ibkr-api" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\young\AppData\Roaming\npm-cache\_logs19-04-21T06_40_48_468Z-debug.log
这里粘贴了2019-04-21T06_40_48_468Z-debug.log
的内容;
https://pastebin.com/raw/GNDP8g46
安装包的位置好像被删除了
当我运行命令时;
$ npm list -g -depth=0
列出了 node.js 包。
如何卸载这个 node.js 软件包?此错误使我无法在全球范围内更新和安装新的 node.js 软件包。
我正在使用 Windows 10 64 位和 node.js v11.14.0
我会回答我自己的问题。
根据 stack overflow 用户 naga - elixir - jar 的评论,我设法解决了这个问题。所有的功劳都归于他。
在日志文件显示缺少 package.json
.
的完全相同的位置重新安装 node.js 包
现在,卸载 node.js 软件包。
$ npm uninstall -g ibkr-api
包已成功删除。
我试图在全局范围内删除此 node.js 程序包 ibkr-api
$ npm uninstall -g ibkr-api
我收到以下错误。
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\..\..\Inv\Programming\node.js\ibkr-api" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\young\AppData\Roaming\npm-cache\_logs19-04-21T06_40_48_468Z-debug.log
这里粘贴了2019-04-21T06_40_48_468Z-debug.log
的内容;
https://pastebin.com/raw/GNDP8g46
安装包的位置好像被删除了
当我运行命令时;
$ npm list -g -depth=0
列出了 node.js 包。
如何卸载这个 node.js 软件包?此错误使我无法在全球范围内更新和安装新的 node.js 软件包。
我正在使用 Windows 10 64 位和 node.js v11.14.0
我会回答我自己的问题。
根据 stack overflow 用户 naga - elixir - jar 的评论,我设法解决了这个问题。所有的功劳都归于他。
在日志文件显示缺少 package.json
.
现在,卸载 node.js 软件包。
$ npm uninstall -g ibkr-api
包已成功删除。