Vue安装脚手架npm install -g @vue/cli报错
Vue安装脚手架npm install -g @vue/cli报错
·
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@vue%2fcil - Not found
npm ERR! 404
npm ERR! 404 '@vue/cil@*' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxx\AppData\Local\npm-cache\_logs\2023-02-04T13_21_50_545Z-debug-0.log
原因:网络原因
解决:① npm config set registry https://registry.npm.taobao.org
② cnpm install -g @vue/cli / npm install -g @vue/cli
更多推荐
已为社区贡献1条内容
所有评论(0)