解决办法: 1.打开电脑自带的搜索框输入:PowerShell 后出来页面 2.输入set-ExecutionPolicy RemoteSigned 3.选择大写的 A 4.再次运行cnpm -v 这样就是好了