Installation problem
Hello Dear, I am Kosal, and I have this problem while use: npx create-vite-app vite-app
PS C:\Users\Kosal\tutorials> npx create-vite-app vite-app npx: installed 2 in 1.142s Scaffolding project in C:\Users\Kosal\tutorials\vite-app... [Error: ENOENT: no such file or directory, scandir 'C:\Users\Kosal\AppData\Roaming\npm-cache_npx\9956\node_modules\create-vite-app\template-vue'] { errno: -4058, code: 'ENOENT', syscall: 'scandir', path: 'C:\Users\Kosal\AppData\Roaming\npm-cache\_npx\9956\node_modules\create-vite-app\template-vue' }
If you've run it before, make sure to run npx create-vite-app@latest ...
to avoid npx
using the cached version.
Hi @yyx990803 , I tried using create-vite-app@latest but still get an error
`PS D:_STUDY\Vue_2020\014_vite> npx create-vite-app@latest vite-test npm ERR! code ENOLOCAL npm ERR! Could not install from "Seedin\AppData\Roaming\npm-cache_npx\18068" 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\Reza Seedin\AppData\Roaming\npm-cache_logs\2020-06-07T06_54_04_090Z-debug.log Install for [ 'create-vite-app@latest' ] failed with code 1 PS D:_STUDY\Vue_2020\014_vite> `
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Reza Seedin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'create-vite-app@latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli 'C:\\Users\\Reza',
1 verbose cli 'Seedin\\AppData\\Roaming\\npm-cache\\_npx\\18068',
1 verbose cli '--loglevel',
1 verbose cli 'error',
1 verbose cli '--json'
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.16.1
4 verbose npm-session 1767a364c2fca122
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for file:Seedin\AppData\Roaming\npm-cache\_npx\18068 Could not install from "Seedin\AppData\Roaming\npm-cache\_npx\18068" as it does not contain a package.json file.
8 http fetch GET 304 https://registry.npmjs.org/create-vite-app 186ms (from cache)
9 silly pacote tag manifest for create-vite-app@latest fetched in 202ms
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 212ms
12 verbose stack Error: ENOENT: no such file or directory, open 'D:\_STUDY\Vue_2020\014_vite\Seedin\AppData\Roaming\npm-cache\_npx\18068\package.json'
13 verbose cwd D:\_STUDY\Vue_2020\014_vite
14 verbose Windows_NT 10.0.19041
15 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Reza Seedin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "create-vite-app@latest" "--global" "--prefix" "C:\\Users\\Reza" "Seedin\\AppData\\Roaming\\npm-cache\\_npx\\18068" "--loglevel" "error" "--json"
16 verbose node v12.16.1
17 verbose npm v6.14.4
18 error code ENOLOCAL
19 error Could not install from "Seedin\AppData\Roaming\npm-cache\_npx\18068" as it does not contain a package.json file.
20 verbose exit [ 1, true ]
My username having a space might be the issue :
Thanks
@LazarPetrovic1 comments in old issues will probably get ignored. If you have found a concrete bug, please build a minimal reproduction and create an issue against the latest version of Vite. If you are not sure, you can start a GitHub Discussion or join the chat at Vite Land to ask questions.