当前位置:网站首页>Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system

Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system

2022-04-23 18:35:00 ChangYan.

function cnpm install The error is as follows :
 Insert picture description here

Solution :
Combination key win + S, Input lookup , Run as administrator

 Insert picture description here

The input instructions are as follows :
set-ExecutionPolicy RemoteSigned
Then enter the selection A,
Check whether the input is complete get-ExecutionPolicy
 Insert picture description here

Be accomplished ! Input again cnpm install, Can install successfully !

 Insert picture description here

版权声明
本文为[ChangYan.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231833579676.html