filmov
tv
Access Denied after Switching NodeJS Version | Fix Access Denied Error in Node JS
Показать описание
Solution for access denied issue with NVM and GIT in Windows while switching NodeJS version. I installed NVM on Windows. NVM is NodeJS Version Manager. It gives us ability to use any version of NodeJS. We can switch NodeJS version by using it easily. After NVM installation, we install NodeJS vesrion and then we switch to that installed version. We have to give a command like nvm use and then NodeJS version that we have installed to use it. I am using Git for Windows as terminal program. It gave error of 'Access is Denied' and could not switch to specified NodeJS version.
Error is like:
Exit status 1: Access is Denied
To fix this error
Search Git
Open its location
Right click, select properties
Check option that says 'Run as Administrator'
Open Git Bash
Run command
nvm use 'node version number'
i.e. nvm use 17.2.0
It will switch to that version successfully. We used Git as administrator because we are giving commands by using Git or terminal. Basically, use NVM and terminal program under administrator privileges.
Problem solved.
Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT
#webstylepress #webdevelopment #nodejs #nvm #git #windows #gitbash #tutorial
Error is like:
Exit status 1: Access is Denied
To fix this error
Search Git
Open its location
Right click, select properties
Check option that says 'Run as Administrator'
Open Git Bash
Run command
nvm use 'node version number'
i.e. nvm use 17.2.0
It will switch to that version successfully. We used Git as administrator because we are giving commands by using Git or terminal. Basically, use NVM and terminal program under administrator privileges.
Problem solved.
Thank You!
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT
#webstylepress #webdevelopment #nodejs #nvm #git #windows #gitbash #tutorial
Комментарии