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

Error on nuxi install #11997

Closed
adityafawzan opened this issue Oct 13, 2021 · 15 comments
Closed

Error on nuxi install #11997

adityafawzan opened this issue Oct 13, 2021 · 15 comments

Comments

@adityafawzan
Copy link

error while trying to install nuxi
Screenshot_20211013_112702

@productdevbook
Copy link
Member

productdevbook commented Oct 13, 2021

Please add detail, windows or mac, node, npm version

@liuxsen
Copy link

liuxsen commented Oct 13, 2021

Please add detail, windows or mac, node, npm version

mac
image

========

image

@adityafawzan
Copy link
Author

Please add detail, windows or mac, node, npm version

Node : 12.16.0

NPM : 7.21.1

OS : Linux Kubuntu 18.04

@productdevbook
Copy link
Member

@adityafawzan
https://v3.nuxtjs.org/getting-started/introduction#prerequisites

  • If you already have Node.js installed, check with node --version that you are using v14 or v16.

@adityafawzan
Copy link
Author

@adityafawzan https://v3.nuxtjs.org/getting-started/introduction#prerequisites

  • If you already have Node.js installed, check with node --version that you are using v14 or v16.

Thanks a lot, by upgrading my Node version, problem resolved

but now after i did yarn install and yarn dev, app running, but i dont see any project folder/directory excep .nuxt and node_modules

image

@productdevbook
Copy link
Member

productdevbook commented Oct 13, 2021

you will create them yourself, please read the documentation.

@liuxsen
Copy link

liuxsen commented Oct 13, 2021

it's not ok with me ;

image

@productdevbook
Copy link
Member

it's not ok with me ;

image

/cc : @antfu

@andysay
Copy link

andysay commented Oct 13, 2021

C:\Users\Andy\Desktop\nuxt3>npm -v
8.0.0

C:\Users\Andy\Desktop\nuxt3>node -v
v16.11.0

C:\Users\Andy\Desktop\nuxt3>npx nuxi init nuxt3-app
Nuxt CLI v3.0.0-27234503.d5127e9 10:01:03

WARN could not fetch remote https://github.com/nuxt/starter 10:01:04

ERROR could not find commit hash for v3 10:01:04

at Degit._cloneWithTar (/C:/Users/Andy/AppData/Local/npm-cache/_npx/a95e0f536cf9a537/node_modules/nuxi-edge/dist/chunks/init.mjs:14288:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Degit.clone (/C:/Users/Andy/AppData/Local/npm-cache/_npx/a95e0f536cf9a537/node_modules/nuxi-edge/dist/chunks/init.mjs:14126:4)
at async Object.invoke (/C:/Users/Andy/AppData/Local/npm-cache/_npx/a95e0f536cf9a537/node_modules/nuxi-edge/dist/chunks/init.mjs:14684:5)
at async _main (/C:/Users/Andy/AppData/Local/npm-cache/_npx/a95e0f536cf9a537/node_modules/nuxi-edge/dist/chunks/index.mjs:417:7)

@productdevbook
Copy link
Member

@adityafawzan please open because @andysay and @liuxsen some problems continue :)

@danielroe
Copy link
Member

@andysay @liuxsen It looks like the issue might be to do with your git version. Can you try running:

npx degit "nuxt/starter#v3" sample-project

and see if there are any errors?

@andysay
Copy link

andysay commented Oct 13, 2021

@andysay @liuxsen It looks like the issue might be to do with your git version. Can you try running:

npx degit "nuxt/starter#v3" sample-project

and see if there are any errors?

C:\Users\Andy\Desktop\nuxt3>npx degit "nuxt/starter#v3" udc
Need to install the following packages:
degit
Ok to proceed? (y) y
! could not fetch remote https://github.com/nuxt/starter
! could not find commit hash for v3

@danielroe
Copy link
Member

@andysay Make sure you have git installed. Check this issue for more info.

@andysay
Copy link

andysay commented Oct 13, 2021

@andysay Make sure you have git installed. Check this issue for more info.

okay i'm reinstall git , now woks fine! thanks.

@pi0
Copy link
Member

pi0 commented Oct 13, 2021

Error message should be better by nuxt/framework#923. I've also made #12015 to migrate to an alternative, hopefully removing git command dependency

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants