All you have to do is download the latest version from the Node.js page and then install it over the current version. If the Powershell script shown above does not work anymore, Node.js can also be updated “manually”. Whether the update was successful can be tested with the following command. Should you use the 32-bit (x86) variant, this is done with the following command: wget -OutFile 'C:\Program Files (x86)\nodejs\node.exe'įor the 64-bit (圆4) variant, the following command must be used: wget -OutFile 'C:\Program Files\nodejs\node.exe' node -v Update Node.js on WindowsĪdd-Type -AssemblyName System.IO.Compression.FileSystemĪlternatively, only the Node.js binary can be exchanged via WGET. npm -v Update Node.js on Linux and macOS (OS X)Įach line is to be issued as a single command: If you are using a cluster with Windows Server node pools, review Upgrading Windows Server node pools. Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force Node auto-upgrade is not available for Alpha clusters. The following commands have to be set in Powershell (Start -> “powershell” -> right click -> Run as Administrator). Once for macOS (OSX) / Linux and once for Windows. Therefore, here are the short and concise CMD/Shell/Bash commands for updating Node.js and NPM. Every time I forget the command line commands for it. But before I start, I’d like to update to the latest version, and that’s where the dilemma starts. Install Node.js on WSL 2: This includes a version manager, package manager, Visual Studio Code, and the Remote Development extension. Every few months I write smaller projects with Node.js. Today’s article falls into the category “reminder”.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |