安裝vue-cli4報error Unexpected end of JSON input while parsing near '...pe":"^2.14.0"},"direc'

卸載之前安裝的vue-cli2(npm uninstall -vue-cli -g)後,準備安裝vue-cli4,執行npm install -g @vue/cli安裝,但是一直報錯「error Unexpected end of JSON input while parsing near '...pe":"^2.14.0"},"direc'」的錯誤。如下圖: 一開始還以爲是node版本的問題,但
相關文章
相關標籤/搜索