WIN10操作系统下,在使用npm安装完cnpm之后,再次打开终端时,无法识别cnpm命令,使用以下方式恢复。
1、WIN+X+A
2、set-ExecutionPolicy RemoteSigned
3、输入 A 回车
即可。