本人小白一枚,问一下,关于mac上 live-server 的问题:
live-server能否在mac上使用,如果能,怎么使用?目前安装好之后,使用的时候总是提示command not found,网上查询说mac使用npm需要配置.bash_profile文件,请问应该怎么配置?谢谢各位大神
把你的live-server的安装路径添加到.bash_profile, 路径为 ~/.bash_profile, 如果没有就创建一个touch ~/.bash_profile;
然后在里面添加live-server的安装路径
export PATH=$PATH:/Users/username/npm-global/bin