nvm windows installation of node getting stuck on "Extracting..." - node.js

I installed the latest nvm Windows cli tool; and when I try to run nvm install lts it shows "Downloading..." then "Extracting..." and freezes there. Never errors, but never moves on, either. If I kill the process and do nvm list, it lists 16.15.0. But if I say nvm use 16.15.0, or nvm uninstall 16.15.0, it says it isn't installed.
I've tried uninstalling nvm and starting over from scratch; same result every time. How do I get past 'Extracting'?

Ok this was a bizarre problem and solution.
Looks like my (work) laptop had previously had win-zip or 7-zip installed, but when it was uninstalled, it didn't re-associate zip files with Windows Explorer.
That meant that the option to click Extract All on a zip file, even manually, was grayed out/disabled. I followed the instructions here: to re-associate .zip files with Windows Explorer:
START menu > Settings (the cog) > Apps > Default Apps. Scroll to the bottom
of that list and look for "Choose default apps by file type". Then
scroll down that until you find ".ZIP" make sure the default is
selected to "Windows Explorer".

Related

Cannot uninstall / repair / install Node.JS to my system

I installed node.js to work on a discord bot with VSCode but it didn't work.
I reinstalled it but ticked the 'install chocolatey' box this time, halfway through the installation I got 3 trojan alerts from my AV, and cancelled the installation.
Since then, I have been unable to uninstall, repair or reinstall Node.JS, through the Windows 10 uninstall function or from the Node.JS .msi file.
Each time I try, I get the same error message:
"The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the Windows Installer is not correctly installed."
I've removed all instances of Node.JS from my program files and %appdata%, I've ensure the Installer Service is running, and yet the Node.JS application still shows in the Uninstall Tool and when I try to uninstall / modify / reinstall, it shows the same error, and seems to think it's still installed on my system! Not even Node.JS commands work in my CMD!
I've got no idea how to fix this, and I don't want to use glitch anymore to write my bot, so please help- or it seem's I'll have to factory reset my PC and hope that resolves the issue.
Thanks in advance, guys.
Godspeed.
EDIT: I tried installing a newer version hoping it would overwrite old Node.JS files. Didn't work. Issue still occurring.
Do these:
Open command prompt as Administrator and run /sfc scannow. It will scan and replace corrupted files.
Restart your PC when the scan is done.

NodeJS re-installation on Windows 10 fails

I had installed nodejs on Windows 10 Pro PC. The drive it was installed in failed and is no longer accessible. I sent it away for data recovery attempt, but it's now gone, not even connected.
I created a restore point and went to NodeJS site, downloaded the installer anew, and tried to re-install it.
The installer looks for that original installation and immediately responds: "Invalid Drive: O:" (the old location). It then immediately quits.
What can I do to re-install it? I can't uninstall it or do anything else (change, or repair). They all give the same message and quit.
Can I uninstall it from the command prompt? Or do a new installation that way?
You can try by editing the following registry value
HKEY_LOCAL_MACHINE\SOFTWARE\Node.js
There you will find an InstallPath property. Rename the drive to a valid one and then try to install node again.
Also remove Node from your PATH variable

I can't install node.js on Windows 7

I got a new machine with Windows 7 built-in and it is also activated. But when I tried to install node.js it gave me this prompt. It is 64-bit operating system
Is there a way I can install it or I should install Windows 10 then.
Apparently some newer versions don't support win 7, what you can do is try to download an older one like 10.14.2 LTS
Here i do this
Go to System-Properties (run: systempropertiesadvanced.exe),
in Advanced tab, click Environment Variables.
Still on the System variables,
click 'New', add name: NODE_PATH with value: C:\nodejs64\node_modules, and click OK.
click 'New' again, add name: NODE_SKIP_PLATFORM_CHECK with value: 1, and click OK.
Click OK of all dialogs close.
Restart your machine, so explore and cmd will get the fresh set of variables.
How to Install node.js in windows 7 Lastest Version?
Ans :
Download Node.js.msi ver. 13.14.0
Download Lastest version of nodejs zip form
install node.js 13.14.0 version
Go C:/nodejs delete all files from this folder
Extract Lastest node.js zip format
Restart Your Terminals or VsCode.
See Results
Note:
Download Node.js LTS Version in Windows
(Windows Binary (.zip))
Before you Extract Delete All files in C:/nodejs folder
You Not needs to Set Variables or other processes of installation.
Thanks You.

How to relaunch MongoDB Compass on windows machine

I installed a mongo db version of 1.20.5 mongodb-compass-1.20.5-win32-x64 on my windows machine and it launches its self automatically after installation.
When i close it, i cannot find its icon on desktop to launch it.
I used Mongodb Compass documentation https://docs.mongodb.com/compass/current/install/ but i could not find how to relaunch
I tried to look for it in the program files but i could not find it but its in the list of installed programs.
Please, how can i launch it again.
By default, it installs in:
C:\Program Files\MongoDB Compass\
But, if you are not Admin, it installs here:
C:\Users\{your user}\AppData\Local\Programs
If you don't find it, try this:
Open This PC
In the "Search on This PC" type Compass and press Enter
Wait until Windows finishes searching
Solution - Install .msi file instead of .exe from https://www.mongodb.com/try/download/compass, then you get the shortcut icon in start option and uninstall option.
Ref URL - Windows MongoDB - Installed Compass but can't find Compass within system

Can't find Git or Cordova on your path (Windows/Netbeans), Can't find GitHub under AppData/Local, FIX 2015

Error: NetBeans cannot find git or cordova on your path.
When trying to create a new Cordova Application in Netbeans.
How to fix? > THE ANSWER CAN BE FOUND BELOW :)
If anyone wants to know how to get Cordova working in Netbeans anno 2015/2016 here is the fix:
I have installed:
Git version: 2.5.1 for Windows 64 bit
Cordova version: 4.3.1 for Windows 64 bit
Node.js version: 0.12.0 for Windows 64 bit
Netbeans version: 8.0.2 x86
In Netbeans when I start a new project and select HTML5>Cordova Application then I will get this error:NetBeans cannot find git or cordova on your path.
After some searching on the good old internet, I found some pieces of information hither and thither which was correct but which didn't solve my problem. The reason for this was that it was old or slightly different than my problem. So I did the following to fix this problem:
I checked where my Cordova/npm files where and I happily found them in: C:\Users\\AppData\Roaming\npm
Next I had to find my Git.exe which FOR ME is located in: C:\Program Files\Git\bin (FOR SOME PEOPLE IT CAN BE FOUND IN: C:\Users\\AppData\Local\GitHub\PortableGit_)
Now I found out that Netbeans is using the windows PATH VARIABLES to locate git and cordova. For those who don't where to find or set the system Path Variables this website will help you find or set it: https://java.com/en/download/help/path.xml
I use windows 7 so I did this to change my path variables:"
-Select Computer from the Start menu
-Choose System Properties from the context menu
-Click Advanced system settings > Advanced tab
-Click on Environment Variables, under System Variables, find PATH, and click on it.
-In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
SO edit path and then you see like C:/apath;C:/asdas; < enter here your git path;<enter here your cordova path and save it by clicking the OK button.
Restart Netbeans and now it has to work.
:)
For those getting here and the solution from #bboni did not work - as it did for me:
Make sure everything is installed correctly by opening a command prompt (open start-menu and type cmd).
Type the following commands git --version, cordova -v and node -v.
For me it looked like this:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\JohnDoe>git --version
git version 2.8.4.windows.1
C:\Users\JohnDoe>cordova -v
6.2.0
C:\Users\JohnDoe>node -v
v4.4.5
That makes sure everything is installed correctly. If one or more commands result in an error, then it's either not installed or not added to PATH as described by #bboni.
Now open your Netbeans and go to Tools → Options → HTML/JS → Mobile Platforms and check if you can see somethink like Installed Cordova version: 6.2.0. This is to make sure Netbeans is basically able to detect Cordova.
At that point all the tutorials I found online ended. I came up with the idea to check if Netbeans' own Terminal would be able to execute the command above as well: Tools → Open in Terminal
I got an error telling me I'd need Cygwin to use the Terminal. So I installed it, restarted Netbeans, opened the Terminal, checked the commands above and they worked.
I checked Configure Cordova again - the error was gone and I could finally ran my app directly from Netbeans as I wanted to.   :)

Resources