Node multi version installation under Windows

Time:2021-11-14

Node multi version installation under Windows

I won’t repeat the installation of a single version of node. Just go to the official website and download the windows installation package

Demand tools:
  • nvm
  • node
NVM installation [download setup and install]:
  • View installed version:

    nvm

Node multi version installation under Windows

Installation of multi version node:
  • View installable nodes

    nvm list available

    Node multi version installation under Windows

  • Install the specified node version

    //NVM install node version above
    nvm install 16.8.0
  • List the installed versions [the meter character is the current node version]

    nvm list

    Node multi version installation under Windows

  • View the current node version

    node --version

    Node multi version installation under Windows

  • Specify the current node version to be used [use NVM list to view the currently installed nodes]

    //NVM use node version
    nvm use 16.3.0

    Node multi version installation under Windows

  • Uninstall a node version

    nvm uninstall 16.3.0
Other instructions:
  • nvm arch: displays whether node is running on 32-bit or 64 bit.
  • nvm install <version> [arch]: install node. Version is a specific version or the latest stable version. The optional parameter arch specifies whether to install a 32-bit or 64 bit version. The default is the number of system bits. You can add — insecure to bypass the SSL of the remote server.
  • nvm list [available]: displays a list of installed. The optional parameter available displays all installable versions. List can be simplified to LS.
  • nvm on: enable node.js version management.
  • nvm off: turn off node.js version management.
  • nvm proxy [url]: set the download agent. Displays the current proxy without the optional parameter URL. Set the URL to none to remove the proxy.
  • nvm node_mirror [url]: set node mirroring. The default ishttps://nodejs.org/dist/。 If you do not write a URL, the default URL is used. After setting, you can view it in the settings.txt file in the installation directory, or operate directly in this file.
  • nvm npm_mirror [url]: set NPM mirror.https://github.com/npm/cli/ar…。 If you do not write a URL, the default URL is used. After setting, you can view it in the settings.txt file in the installation directory, or operate directly in this file.
  • nvm uninstall <version>: uninstall the specified version of node.
  • nvm use [version] [arch]: use the specified version node. 32 / 64 bit can be specified.
  • nvm root [path]: set the directory where different versions of node are stored. If not set, the current directory is used by default.
  • nvm version: displays the NVM version. Version can be simplified to v.

Recommended Today

Summary of spark conf and config configuration items

1. State configuration item summary of structured streaming Config Name Description Default Value spark.sql.streaming.stateStore.rocksdb.compactOnCommit Whether we perform a range compaction of RocksDB instance for commit operation False spark.sql.streaming.stateStore.rocksdb.blockSizeKB Approximate size in KB of user data packed per block for a RocksDB BlockBasedTable, which is a RocksDB’s default SST file format. 4 spark.sql.streaming.stateStore.rocksdb.blockCacheSizeMB The size capacity […]