-bash:?yarn:?command?not?found
原因:類似于windows沒有配置環(huán)境變量
終端輸入:
open?-e?~/.bash_profile //上方指令方式將通過記事本直接編輯的方式,或者是采用控制臺(tái)的vim指令
touch ~/.bash_profile //touch的意思是沒有就創(chuàng)建,.bash_profile為系統(tǒng)臨時(shí)的環(huán)境變量
open -e ~/.bash_profile //open指令打開這個(gè)文件,如果提示沒有權(quán)限 請(qǐng)?jiān)谇懊婕由蟬udo
在發(fā)開的bash_profile文件中輸入例: export PATH=$PATH:/usr/local/node_global/bin //找到安裝的依賴的具體目錄
source ~/.bash_profile //source表示重新執(zhí)行,刷新
over...
原文鏈接:https://www.cnblogs.com/niceyoo/p/11725635.html