vue環境搭建問題,無法識別vue

搭建前端vue環境,node.js已安裝,但無法安裝vue-cli,沒有網絡,但從外網down的cache,npm全覆蓋了,還是無法使用vue -V指令,無法識別vue

PS D:\devsoft\node> npm config get -g
; "builtin" config from D:\devsoft\node\node_modules\npm\npmrc

; prefix = "C:\Users\F1211352\AppData\Roaming\npm" ; overridden by user

; "user" config from C:\Users\F1211352.npmrc

cache = "D:\devsoft\node\node_cache"
prefix = "D:\devsoft\node\node_global"
registry = "https://registry.npm.taobao.org/"

; "cli" config from command line options

global = true

; node bin location = D:\devsoft\node\node.exe
; cwd = D:\devsoft\node
; HOME = C:\Users\F1211352
; Run npm config ls -l to show all defaults.

切换淘宝源 试试 。

运行 npm config ls -l 看看

先安装cnpm install webpack-cli -g,安装vue脚手架

卸载,yarn安装