NPM vue Cli 踩雷紀錄

Willy
2 min readSep 16, 2020

--

‘vue’ 不是內部或外部命令 解決方案

— — — — — — — — — — — — — — —

Terminal中 command npm config get prefix

取得路徑=>我的電腦=>內容=>進階系統設定=>進階=>環境變數=>

系統變數=>Path =>編輯=>新增=>輸入command取得路徑=>確定

— — — — — — — — — — — — — — —

環境變數=>系統變數=>Path=>編輯
新增=>輸入 command 取得的路徑 =>確定
表示成功
RequestError: Error: connect ETIMEDOUT

到上方command 取得的路徑中找尋 npm\node_modules@vue\cli\lib\util 中的request.js 增加proxy設定 proxy: 'http://<your.proxy.info>:8080'

--

--

Willy
Willy

Written by Willy

前端修練筆記本,記錄一些踩雷及學習過程,希望能順便幫助一些,在學習或開發路上卡關的人們。

No responses yet