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

Can not install NativeScript CLI on windows #10547

Closed
3 tasks done
nguyenbn7 opened this issue May 14, 2024 · 4 comments
Closed
3 tasks done

Can not install NativeScript CLI on windows #10547

nguyenbn7 opened this issue May 14, 2024 · 4 comments
Labels
bug-pending-triage Reported bug, pending triage to confirm.

Comments

@nguyenbn7
Copy link

Issue Description

I am following this instruction but stuck at installing-the-nativescript-cli , the installation failed as images bellow

Capture

image

image

I try to list global package in npm but it's empty

image

I also use npm install nativescript -g --force but still failed

image

image

image

This time it show the package installed but can not use CLI.

image

Enviroment:

Windows 10 22H22 build 19045.4291
Node version: 22.1.0
NPM version: 10.7.0

Reproduction

No response

Relevant log output (if applicable)

No response

Environment

No response

Please accept these terms

@nguyenbn7 nguyenbn7 added the bug-pending-triage Reported bug, pending triage to confirm. label May 14, 2024
@rayltcero
Copy link

@nguyenbn7, a workaround suggested by @rigor789 in this issue worked for me.

npm i -g npm@~10.3
npm i -g nativescript

@nguyenbn7
Copy link
Author

@rayltcero I tried it but it still failed.

image

Do I have to make npm at that version so that I can install the CLI?

@rigor789
Copy link
Member

Please read the error message, it indicates the possible issue: network setup issue, either you are behind a proxy or you ran into an npm registry outage (in which case just try again).

@nguyenbn7
Copy link
Author

@rigor789 Thank you. This is my first time see this error and I don't know what is it 😅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-pending-triage Reported bug, pending triage to confirm.
Projects
None yet
Development

No branches or pull requests

3 participants