簡體   English   中英

我無法在 windows 上重新安裝 node.js 10

[英]I cannot reinstall node.js on windows 10

我需要重新安裝 node.js 的幫助,但是當我卸載以前的節點時,我保留了這個錯誤

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

然后我嘗試重新安裝 msiexec.exe 以查看是否可以修復 windows 安裝程序中的錯誤,但是彈出了這個錯誤

ren msi.dll msi.old

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

window 安裝程序服務正在運行我檢查並嘗試使用其他包,如巧克力但我仍然收到錯誤(通用 MSI 錯誤)。 作為最后的手段,我從程序文件中刪除了節點文件夾,但這沒有用。 請我需要幫助保存這個

我也收到錯誤

我就是這樣解決的

首先我以管理員身份運行你的命令行然后

我在 cmd 輸入 sfc /scannow 然后輸入

在此處輸入圖像描述

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

嘗試以管理員身份運行安裝程序。

以管理員身份運行命令提示符並輸入此代碼 sfc /scannow 等待它完成修復並重試

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM