-
create base folder
cd $env:TEMP mkdir without-symlink-dir-vue-1231 cd without-symlink-dir-vue-1231
-
bootstrap vite vanilla project
npm create vite@latest my-app -- --template vanilla
-
build it and run it -> should run without problems
cd my-app npm install npm run dev
-
go back to the temp dir
cd $env:TEMP
-
become administrator
Start-Process pwsh –Verb RunAs
-
create symlink
New-Item -Path symlink-path-vue -ItemType SymbolicLink -Value $env:TEMP\without-symlink-dir-vue-1231
Warning
make sure you close the admin terminal and return to the previous terminal
- now run it in the symlink path -> this will not run (after visiting http://localhost:5173/ in the browser)
cd $env:TEMP\symlink-path-vue\my-app\ npm run dev