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

access denied Node v12.18.1 #552

Closed
15 tasks
Cartman0 opened this issue Jun 23, 2020 · 25 comments
Closed
15 tasks

access denied Node v12.18.1 #552

Cartman0 opened this issue Jun 23, 2020 · 25 comments

Comments

@Cartman0
Copy link

Cartman0 commented Jun 23, 2020

Make sure you have reviewed the common issues and existing issues before submitting a new issue.

If this is a question about how to use NVM4W, please use stackoverflow instead.

If this is an issue regarding antivirus, make sure you search the existing issues first.

My Environment

  • Windows 7 or below (not truly supported due to EOL - see wiki for details)

  • Windows 8

  • Windows 8.1

  • [○] Windows 10

  • Windows 10 IoT Core

  • Windows Server 2012

  • Windows Server 2012 R2

  • Windows Server 2016

  • [○] My Windows installation is non-English.

I'm using NVM4W version:

Run nvm version if you don't know.

1.1.7

I have already...

  • [○] read the README to be aware of npm gotchas & antivirus issues.
  • [○] reviewed the wiki to make sure my issue hasn't already been resolved.
  • [○] verified I'm using an account with administrative privileges.
  • searched the issues (open and closed) to make sure this isn't a duplicate.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • settings.txt
  • proxy support (Have you tried version 1.1.0+?)
  • 32 or 64 bit support (Have you tried version 1.1.3+?)
  • Character escaping (Have you tried version 1.1.6+?)
  • A standard shell environment (terminal/powershell)
  • A non-standard shell environment (Cmder, Hyper, Cygwin, git)

Steps to reproduce the problem:

maybe same this issue
https://stackoverflow.com/questions/50563188/access-denied-issue-with-nvm-in-windows-10?noredirect=1&lq=1 .

> nvm install 12.18.1 64
> nvm use 12.18.1
Now using node v12.18.1 (64-bit)
> nvm list
12.18.1

it does't mark current version.

Then, access denied node and npm command.

> node -v
access denied

accessdenied

@coreybutler
Copy link
Owner

Have you tried this? https://stackoverflow.com/questions/50563188/access-denied-issue-with-nvm-in-windows-10

access denied means the user account does not have privileges to run the executable.

@Cartman0
Copy link
Author

Cartman0 commented Jul 10, 2020

@coreybutler

hi.
i cant solve this such as comments in the stackoverflow.

node v10 installed old time / can work. so, may change specification (such as install location) from v12.

can you install v12?

@coreybutler
Copy link
Owner

I cannot recreate the problem.

image

@Cartman0
Copy link
Author

Cartman0 commented Jul 11, 2020

thx for try.
can you also work when install nodejs outside c:users/(username)/ dir (ex. c:nvm ?

i have changed to install to c:/nvm from default location of nodejs ,
and also settings.txt of nvm-windows.

@coreybutler
Copy link
Owner

Yes, it works in other directories, including c:\nvm. Do not set it to C:\Program Files, because that is a protected directory (it requires additional permissions).

@Cartman0
Copy link
Author

Cartman0 commented Jul 11, 2020

hmm...
node v12.18.2 can't run in my env.

now, i reinstalled nvm-windows v1.1.7 for administrator privileges(from right click the installer).
i changed install location to c:\nvm, don't change symlink.

settings.txt:

root: C:\nvm
path: C:\Program Files\nodejs

As follow, when start cmd for administrator privileges and nvm use, can't (asterisk)mark on version, then running node -v, access denied.

nvm

@Cartman0
Copy link
Author

Cartman0 commented Jul 11, 2020

i noticed one, but i don't know it cause.

DL link "https://nodejs.org/dist/v12.18.2/win-x64//node.exe" was correct, but occured follow error.

> nvm install 12.18.2
Error while downloading https://nodejs.org/dist/v12.18.2/win-x64//node.exe - read tcp 192.168.1.7:49487->104.20.22.46:443: wsarecv: An existing connection was forcibly closed by the remote host.

@coreybutler
Copy link
Owner

Are you behind a firewall? Clearly it didn't download completely. That error is being thrown directly from the underlying network connection.

@Cartman0
Copy link
Author

Cartman0 commented Jul 11, 2020

@coreybutler
it is same when turn off firewall of windows defender..
firewall warning dialog also doesn't be popuped.

@coreybutler
Copy link
Owner

@Cartman0 - Are you behind a proxy? Can you download the installation file manually?

@coreybutler
Copy link
Owner

Closing due to no response.

@saugstauberr
Copy link

I'm experiencing the same issue right now. Already disabled my UAC screen when running as admin and it still shows me "Access denied"..
Reinstalled it many times and runned it as admin, didn't work.

@mpiber
Copy link

mpiber commented Sep 26, 2021

I'm experiencing the same issue right now. Already disabled my UAC screen when running as admin and it still shows me "Access denied"..
Reinstalled it many times and runned it as admin, didn't work.

@ItsMartin030 I was having the same problem, the solution for me was to uninstall the current version and install this version as an administrator.

@cope
Copy link

cope commented Sep 27, 2021

I have the same problem, and uninstalling and installing as admin did not help :(

image

@mpiber
Copy link

mpiber commented Sep 27, 2021

I have the same problem, and uninstalling and installing as admin did not help :(

image

@cope uninstall version 1.1.8 and install version 1.1.7 as an administrator, for me it was the solution.

@cope
Copy link

cope commented Sep 27, 2021

@mpiber oh, that worked

so then the problem is in 1.1.8 ?

@Rupam-Shil
Copy link

Yes, I guess the problem is with the version, I uninstalled version 1.1.8 and installed 1.1.7 and it started working

@coreybutler
Copy link
Owner

See https://github.com/coreybutler/nvm-windows/wiki/Common-Issues#permissions-exit-1-exit-5-access-denied

If you feel an issue is unresolved, please open a new issue instead of commenting on closed issues. I don't make a habit of reviewing closed issues.

@eldoctorgonzo
Copy link

Hey guys, it's a permission problem.
In Windows make sure your run the windows shell or CLI as Administrator.
Then u can use:
nvm use latest
to change to the last Node version available.

if you wanna use another version installed, list the available versions...
nvm list
And use:
nvm use [version]
To pick what you want.

Hope it helps!

@MMN3003
Copy link

MMN3003 commented Nov 9, 2021

I fix it!!
first uninstall node version that not work. in my case:
nvm uninstall 16.13.0
then run cmd/shell as administrator and change my directory to :
C:\
then install node again
nvm install 16.13.0
and use it as current
nvm use 16.13.0
all done!
nvm list

@aditodkar
Copy link

I fix it!! first uninstall node version that not work. in my case: nvm uninstall 16.13.0 then run cmd/shell as administrator and change my directory to : C:\ then install node again nvm install 16.13.0 and use it as current nvm use 16.13.0 all done! nvm list

Worked for me. Thanks a lot :)

@apzentral
Copy link

For me, in order for this to work. I need to use nvm version 1.1.7 instead of using 1.1.8.

@Onm-Galindo
Copy link

Using nvm version 1.1.7 instead of using 1.1.8 as well

@saugstauberr
Copy link

I had MacType installed, a Windows font smoothener, and it used my Node process. After stopping it the error disappeared again and everything is working fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests