
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. Whether the update was successful can be tested with the following command. npm -v Update Node.js on Linux and macOS (OS X)Įach line is to be issued as a single command: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force 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. Every few months I write smaller projects with Node.js.
Set the value to 1 and close the Registry Editor.Today’s article falls into the category “reminder”. Select the LongPathsEnabled key, or create it as a DWORD (32-bit) value if it does not exist. Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\ CurrentVersion\Group Policy Objects\ Machine\System\CurrentControlSet\Policies. Hit the Windows key, type regedit and press Enter. If you're using a version of Windows that does not provide access to Group Policy, you can edit the registry instead. Double click the Enable NTFS long paths option and enable it. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS. Hit the Windows key, type gpedit.msc and press Enter. It's likely that this feature will be made available in Windows 10 Anniversary Update when it is released later in the year, but you can enable it in the latest Insider build using Group Policy: Enabling this setting will cause the long paths to be accessible within the process." As Microsoft's description of the feature explains: "Enabling NTFS long paths will allow manifested win32 applications and Windows Store applications to access paths beyond the normal 260 char limit per node. It's not a feature that will work with every application you have installed, but it should work with many.