yarn安裝
安裝完nvm和node后,在https://yarn.bootcss.com/docs/install/#windows-stable里按第一個方法進行安裝,在這里下載https://www.jianshu.com/p/5e111693179e,
Vue安裝
在官網https://cli.vuejs.org/zh/guide/installation.html按照指示執行npm install -g @vue/cli安裝Vue,執行這個指令前要先設置npm的鏡像,用命令npm config set registry https://registry.npm.taobao.org,https://blog.csdn.net/survivorsfyh/article/details/104846207
如果用官網的yarn global add @vue/cli安裝Vue,會報
There appears to be trouble with your network connection,按網上設置了代理也不行,
參考:https://www.jianshu.com/p/5e111693179e
在Windows中,可以通過set命令來查看環境變量,想要刪除可以右鍵電腦屬性里刪除,
用命令vue create 項目名時,無法下載Cypress,報錯說是因為沒有設置HTTP_PROXY代理,結果按鏈接https://docs.cypress.io/guides/references/proxy-configuration.html#Set-a-proxy-on-Windows設置了之后也不行,之后用微服務打造秒殺商城項目里的方法安裝時,要把設置的這個代理刪除了才行,
手動配置時候的設置https://blog.csdn.net/qq_40015826/article/details/89249086
試過的幾個報錯:https://blog.csdn.net/tangkthh/article/details/88787714