您的位置: 首页 > 文章 > create-react-app : 无法加载文件 C:\Users\zhanshiyu\AppData\Roaming\npm\create-react-app.ps1 bug解决 create-react-app : 无法加载文件 C:\Users\zhanshiyu\AppData\Roaming\npm\create-react-app.ps1 bug解决 分类: 文章 • 2022-10-03 14:47:18 问题 使用create-react-app脚手架搭建react项目时报错 create-react-app : 无法加载文件 C:\Users\zhanshiyu\AppData\Roaming\npm\create-react-app.ps1,因为在此系统上禁止运行脚本。 解决方法 管理员运行Windows PowerShell 输入set-ExecutionPolicy RemoteSigned Enter 再输入A Enter 最后get-ExecutionPolicy 再回到项目中运行create-react-app xx就可以了