Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem #101

Closed
angkosal opened this issue May 9, 2020 · 8 comments
Closed

Installation problem #101

angkosal opened this issue May 9, 2020 · 8 comments

Comments

@angkosal
Copy link

angkosal commented May 9, 2020

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'
}

@angkosal angkosal added the bug label May 9, 2020
@angkosal angkosal changed the title Npx Installation problem Installation problem May 9, 2020
@pornpol
Copy link

pornpol commented May 9, 2020

I just try and face the same problem. TT

@pearofducks
Copy link

@angkosal @pornpol - in the meantime you can do npx create-vite-app@1.0.5 APP_NAME

@Lxxyx Lxxyx mentioned this issue May 9, 2020
@tomoat
Copy link

tomoat commented May 9, 2020

I also encountered the same problem, how solve it ?

@yyx990803
Copy link
Member

Should be fixed in create-vite-app@1.1.1.

@yyx990803
Copy link
Member

yyx990803 commented May 9, 2020

If you've run it before, make sure to run npx create-vite-app@latest ... to avoid npx using the cached version.

@RezaSeedin
Copy link

RezaSeedin commented Jun 7, 2020

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
Copy link

I have a problem with vite not installing vue with yarn add

@patak-dev
Copy link
Member

@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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants