


How to install
node version management tool (nvm) under windows? The following article will introduce you to some pitfalls when installing nvm tools, as well as solutions. I hope it will be helpful to you!
Things usually start with the need to maintain old projects and new projects on the local computer, but the old project may need to compare to an older version of node, so if you can at any time Just switch the node version! nvm came into being.
Because I am more cautious, I looked for some pitfalls that others have encountered before installing nvm, and there are still some pitfalls. When I felt that everything was ready (after reading several installation pitfalls articles), I started to operate:
Operating system: win10-64bit, nvm under windows is nvm-windows
Step 1 (very important):
If nodejs has never been installed on this machine, you can skip it This step
Completely (must be completely) uninstall the local node and delete the npm related directory (refer to the solution on stackoverflow)
A little translation (my operation) is:
-
To kill the node-related process, you can right-click the menu bar to open the task manager, find the node process and then "End Task"
Uninstall node in the application management interface
Remove the relevant folders in step 4 above (if they exist)
Delete environment variables related to node and npm
Run in cmdwhere node You can see whether node has been uninstalled (if it has not been uninstalled, you will see to an installation path)
Step 2:
Official website address: https://github.com/coreybutler /nvm-windows/releases/tag/1.1.8
Click to download the installation package. I installed 1.1.8. Just find the installation package in the release interface and download it
Step 3:
Install nvm-setup, which is the installation method of ordinary software. The address does not need to be changed ( I chose the following address). After installation, two environment variables will be added automatically
Open the nvm installation directory. The default should be: C:\Users{user}\ AppData\Roaming\nvm\
Modify the settings.txt file and change the npm image to the Taobao image. This is my configuration. The default root and path do not need to be changed. Add the following Two lines
root: C:\Users\PARATERA\AppData\Roaming\nvm path: C:\Users\PARATERA\AppData\Roaming\nodejs node_mirror: https://npm.taobao.org/mirrors/node/ npm_mirror: https://npm.taobao.org/mirrors/npm/
Step 4:
You can execute the following command to operate
nvm -v: Check whether nvm is installed successfully
nvm arch: Display whether the node is running in 32-bit or 64-bit mode
nvm install [version number]: Install the corresponding version of node, such as nvm install v16.5.0 After installation, you will see that the nvm directory will have additional folders for the corresponding version. To install the latest version, use the command nvm install latest
##nvm ls<em></em>: List installed node.js versions
nvm use [version number]<em></em>: Use the installed node16.5.0 version.
There is no global variable node or npm before the version is specified successfully. There is no need to try it
node -v<em></em>: View the current node version
-
npm -v<em></em>: View the current npm version
Pitfalls:
Error when running nvm use [version number]:
##See Now using node vXXXX
node -vCheck whether the switched version is as expected
You can have fun playing!
but! Use
npm i -g [package] under a certain version. The installed global package can only be used under the corresponding version. <em></em>
For example:
For more node-related knowledge, please visit: nodejs tutorial! !
The above is the detailed content of How to install the node version management tool (nvm) under windows and how to avoid pitfalls?. For more information, please follow other related articles on the PHP Chinese website!

c盘的users是用户文件夹,主要存放用户的各项配置文件。users文件夹是windows系统的重要文件夹,不能随意删除;它保存了很多用户信息,一旦删除会造成数据丢失,严重的话会导致系统无法启动。

启动任务管理器的三个快捷键是:1、“Ctrl+Shift+Esc”,可直接打开任务管理器;2、“Ctrl+Alt+Delete”,会进入“安全选项”的锁定界面,选择“任务管理器”,即可以打开任务管理器;3、“Win+R”,会打开“运行”窗口,输入“taskmgr”命令,点击“确定”即可调出任务管理器。

PIN码是Windows系统为了方便用户本地登录而独立于window账户密码的快捷登录密码,是Windows系统新添加的一套本地密码策略;在用户登陆了Microsoft账户后就可以设置PIN来代替账户密码,不仅提高安全性,而且也可以让很多和账户相关的操作变得更加方便。PIN码只能通过本机登录,无法远程使用,所以不用担心PIN码被盗。

对于刚刚开始使用PHP的用户来说,如果在Windows操作系统中遇到了“php不是内部或外部命令”的问题,可能会感到困惑。这个错误通常是由于系统无法识别PHP的路径导致的。在本文中,我将为您提供一些可能会导致这个问题的原因和解决方法,以帮助您快速解决这个问题。

win10自带的onenote是UWP版本;onenote是一套用于自由形式的信息获取以及多用户协作工具,而UWP版本是“Universal Windows Platform”的简称,表示windows通用应用平台,不是为特定的终端设计的,而是针对使用windows系统的各种平台。

因为win10系统是不自带扫雷游戏的,需要用户自行手动安装。安装步骤:1、点击打开“开始菜单”;2、在打开的菜单中,找到“Microsoft Store”应用商店,并点击进入;3、在应用商店主页的搜索框中,搜索“minesweeper”;4、在搜索结果中,点击选择需要下载的“扫雷”游戏;5、点击“获取”按钮,等待获取完毕后自动完成安装游戏即可。

windows操作系统的特点包括:1、图形界面;直观高效的面向对象的图形用户界面,易学易用。2、多任务;允许用户同时运行多个应用程序,或在一个程序中同时做几件事情。3、即插即用。4、出色的多媒体功能。5、对内存的自动化管理。

在windows中鼠标指针呈四箭头时一般表示选中对象可以上、下、左、右移动。在Windows中鼠标指针首次用不同的指针来表示不同的状态,如系统忙、移动中、拖放中;在Windows中使用的鼠标指针文件还被称为“光标文件”或“动态光标文件”。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment
