Windows环境下npm install 以及 vue cli 创建新项目时报错 急求!感谢!

 各位大佬好! 我在使用npm install 时候,还有使用 "vue create projec-name" 创建新项目的时候,均出现了下面的error. 请问这个要怎么修复? 已经重装node很多次了。也清理过缓存。总之Google能找到的办法全都试过了. 我不太理解这是个什么样的问题,是npm在错误的path调用了node嘛? 感谢! 非常急用

/c/Users/zhang/node_modules/.bin/node: line 8: C:\Users\zhang\node_modules\.bin/../node/bin/node: No such file or directory   

当使用Vue-Cli 来新建vue项目的时候,会有以下error

另外附上我的npm的configs

; cli configs
metrics-registry = "https://registry.npm.taobao.org/"
scope = ""
user-agent = "npm/6.14.12 node/v14.16.1 win32 x64"

; userconfig C:\Users\zhang\.npmrc
ELECTRON_MIRROR = "http://npm.taobao.org/mirrors/electron/"
cache = "D:\\Users\\zhang\\AppData\\npm\\cache"
msvs_version = "2019"
prefix = "D:\\Users\\zhang\\AppData\\npm\\global"
registry = "https://registry.npm.taobao.org/"
script-shell = "D:\\Program Files\\git\\bin\\bash.exe"
strict-ssl = false
unsafe-perm = true

; builtin config undefined

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\Users\zhang\Desktop\newtest
; HOME = C:\Users\zhang
; "npm config ls -l" to show all defaults.

 

经过了几个小时的琢磨我终于解决了这个问题,我删掉了位于User/zhang目录下的那个 node_modules 文件夹。就是一开始抱错那个。然后重装了node。fixed

换一个npm的下载仓库试试,有可能版本不兼容导致的