天天看點

nrm : 無法加載檔案 C:\Users\TANG\AppData\Roaming\npm\nrm.ps1,因為在此系統上禁止運作腳本

轉載自:https://blog.csdn.net/ougexingfuba/article/details/104056327

1.win+s 搜尋powershell 以管理身份運作

nrm : 無法加載檔案 C:\Users\TANG\AppData\Roaming\npm\nrm.ps1,因為在此系統上禁止運作腳本

2.使用set-ExecutionPolicy RemoteSigned指令将計算機上的執行政策更改為 RemoteSigned,輸入Y确定

nrm : 無法加載檔案 C:\Users\TANG\AppData\Roaming\npm\nrm.ps1,因為在此系統上禁止運作腳本

3.檢視計算機執行政策get-ExecutionPolicy

nrm : 無法加載檔案 C:\Users\TANG\AppData\Roaming\npm\nrm.ps1,因為在此系統上禁止運作腳本