输入命令时出现create-react-app :无法加载文件

输入命令时出现create-react-app :无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\create-react-app.ps1

1.windows系统的电脑上搜索框输入:Windos PowerShell 并且以管理员身份运行

2.在命令行中输入set-ExecutionPolicy RemoteSigned回车,输入A回车,通过 get-ExecutionPolicy 查看当前的状态:为RemotedSigned成功。

你可能感兴趣的:(输入命令时出现create-react-app :无法加载文件)