Toby Nwude
Toby Nwude

Reputation: 411

I cannot reinstall node.js on windows 10

I need help reinstalling node.js but I keep this error when I uninstall the previous node

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 then try reinstalling msiexec.exe to see if I can fix the error in the windows installer but this popped up

ren msi.dll msi.old

ren msiexec.exe msiexec.old
bash: cd: %windir%system32: No such file or directory

The window installer service is running I check and I try using other packages like chocolatey but I still get the error (Generic MSI error). As a last resort, I deleted the node folder from the program file but that didn't work. please I need help saving this

Upvotes: 0

Views: 1811

Answers (4)

Hakan Bayazit
Hakan Bayazit

Reputation: 438

I got the error too

This is how i solved it

1-) I ran your command line as administrator then

2-) I typed sfc /scannow in cmd and entered

enter image description here

Upvotes: 2

Run command prompt as administrator and type in this code sfc /scannow the wait for it to finish repairs and try again

Upvotes: 0

kmiklas
kmiklas

Reputation: 13433

Try running the installer as an admin.

Upvotes: 0

Toby Nwude
Toby Nwude

Reputation: 411

I fixed this by downloading the latest nodejs zip file and then edit the environment variable by adding C:\Programs Files\nodejs.Note: add the content of the zip file to C:\Programs Files\nodejs Thanks

Upvotes: 0

Related Questions