Anywhere是一个随启随用的静态服务器,它可以随时随地将你的当前目录变成一个静态文件服务器的根目录
安装方式
1、安装node.js(https://nodejs.cn/download/)
2、安装anywhere:npm install -g anywhere
使用powershell执行anywhere时,报错:anywhere : 无法加载文件 C:\Users\admin\AppData\Roaming\npm\anywhere.ps1,因为……
1.win+s 搜索powershell 以管理身份运行
2.使用set-ExecutionPolicy RemoteSigned命令将计算机上的执行策略更改为 RemoteSigned,输入Y
3.查看计算机执行策略get-ExecutionPolicy
4.执行命令:Set-ExecutionPolicy RemoteSigned -Scope Process,再次输入Y
结束