After yarn installed vue, it was reported that the "file name, directory name, or volume label syntax is incorrect."

used to work normally
has been broken since I used this command yarn global add @ vue/cli-init
reinstalled yarn and vue

 where vue
D:\scoop\apps\yarn\current\bin\vue
D:\scoop\apps\yarn\current\bin\vue.cmd

contents of vue.cmd
@ "% ~ dp0\ C:\ Users\ liux\ AppData\ Local\ Yarn\ Data\ global\ node_modules\ .bin\ vue.cmd"% *
this code I directly get to the command line to execute the same error file name, directory name or volume label syntax is incorrect.

I feel that there is a problem here, but I don"t know how to solve it. Please ask

Apr.21,2021

changed
to @ "C:\ Users\ liux\ AppData\ Local\ Yarn\ Data\ global\ node_modules\ .bin\ vue.cmd"% *
I don't know why yarn automatically generated links report this error


because your yarn directory and installed module are not in the same hard disk partition.
there is no problem with copying C:UsersliuxAppDataLocalYarnDataglobal to your yarn disk and changing the connection above. The directory where the module is installed will not be found when you delete it.
I'd like to ask how to change the default location of this directory
C:UsersliuxAppDataLocalYarnDataglobal

.
Menu