cnpm displayed: Could not load file C: \ Users \ hp \ AppData \ Roaming \ npm \ cnpm.ps1

Foreword

Today cnpm running time, there was error in the title, how is this going children do? Upon inquiry, understanding, originally prohibited the system to run the script.

solution

① Run as Administrator:

Wins+XClick Ato open power shell, that is an administrator of the command window

② Input: set-ExecutionPolicy RemoteSignedand enter the Acan, thus, the problem is solved, in order to give everyone a clearer steps, below a map, can be used as a reference:
Here Insert Picture Description
summary

Growing from a little bit of accumulation, allow yourself to become even more outstanding!

Published 140 original articles · won praise 106 · views 190 000 +

Guess you like

Origin blog.csdn.net/tigaobansongjiahuan8/article/details/103540898