Node全域和專案套件 - daniel-qa/Vue GitHub Wiki
Node全域和專案套件
- 查詢/移除全域套件
npm list -g --depth=0
npm uninstall -g @babel/types
- 查詢/移除專案套件
npm list --depth=0
npm uninstall @babel/types
只列出最上層,以 @babel/types 套件為例
P.S 如果找不到原因,請注意,是否是代碼自動補上了不應該引用的存在,路徑...
例如:
import { isTSMethodSignature } from "c:/users/qahab/appdata/local/microsoft/typescript/5.2/node_modules/@babel/types/lib/index";
這種本地路徑,很容易造成問題