Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.6k views
in Technique[技术] by (71.8m points)

明明 npm ls -g 里没有 vue-cli,vue --version 却依然有输出,如何排查?

PS C:WINDOWSsystem32> vue --version
@vue/cli 4.1.2
PS C:WINDOWSsystem32> npm ls -depth 0 -g                                                                              C:UserssyxAppDataRoaming
pm
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

PS C:WINDOWSsystem32> vue --version
@vue/cli 4.1.
PS C:WINDOWSsystem32>  

如代码所示,明明我已经卸载了 @vue/cli 但执行 vue --version 却会输出 @vue/cli 4.1.2。在卸载之后已经重启了一次电脑,还是一样。

想问下如何确定这个 vue 是安装在了哪儿并且如何卸载。我没有使用过 yarn,绝对没有!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

能直接运行,那么肯定就存在 Path 路径下. 你 echo %PATH% 然后去输出的路径下面去找,总有一个存在的.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...