天天看點

Mac安裝Vue-cli時 提示bash: vue: command not found問題

在安裝完Vue的腳爪,Vue-cli之後,發現使用Vue指令,無發現使用,其實是環境變量沒有配置。

解決方案:在.bash_profile中配置環境變量。

1.使用指令行sudo npm install --global vue-cli 

Mac安裝Vue-cli時 提示bash: vue: command not found問題

2.複制要配置的環境變量的路徑

3.添加環境變量  export PATH="$PATH:(複制的位址)",

Mac安裝Vue-cli時 提示bash: vue: command not found問題

具體的使用方式可以看部落格https://blog.csdn.net/ioszhanghui/article/details/91417003

學習部落格:https://www.cnblogs.com/wz2018/p/9849000.html

繼續閱讀