Install NVM on Windows (Node Version Manager)

Опубликовано: 23 Ноябрь 2022
на канале: Seeker Labs
21,808
149

https://truthseekers.io

In this video we show you how to install NVM on Windows with the windows NVM installer.

NOTE: I recently got a warning that NPM was out of date and to upgrade to 9.x.x. I haven't done it yet because I haven't gotten the warning again, but I found a few options to do so on Stack Overflow that have minor conflicts. Here's a few ways you can try to update NPM when using NVM for Windows

Option 1: Script I don't understand, (Sorry, I'm weak in bash lol) https://gist.github.com/nokidding/aaf...

Option 2: Two stack overflow posts with a set of commands (See "Ryan Shillington")
https://stackoverflow.com/questions/9...

https://stackoverflow.com/questions/5...

The command lists slightly conflict (one was pre-npx, the other didn't remove the old files), so I combined the two and removed the duplication to end up with this:

cd %APPDATA%\nvm\ (will just cd again to the newest)
move npm npm-old
move npm.cmd npm-old.cmd
move npx npx-old
move npx.cmd npx-old.cmd
cd node_modules\
move npm npm-old
cd npm-old\bin
node npm-cli.js i -g npm@latest --force

cd %APPDATA%\nvm\ (cd again)
rm npm-old
rm npm-old.cmd
rm npx-old
rm npx-old.cmd
cd node_modules\
rm -rf npm-old


I have not tried this command set to update NPM yet, but I will get around to it when I get the warning again. Good luck!


На этой странице сайта вы можете посмотреть видео онлайн Install NVM on Windows (Node Version Manager) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Seeker Labs 23 Ноябрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 21,808 раз и оно понравилось 149 зрителям. Приятного просмотра!