Vue最近更新了新版本,在vue项目管理器中创建项目的时候,发现如下错误信息:
“vue create is a Vue CLI
3 only command and you are using Vue CLI 2.9.6.”
如何更新vue cli到最新版本解决这个问题?
解决问题步骤如下:
1、首先卸载旧版本的vue cli:
npm uninstall vue-cli -g 或 yarn global remove vue-cli
2、然后重新安装vue cli
npm install -g @vue/cli
# 或
yarn global add @vue/cli
vue cli的包名已经从vue-cli变成@vue/cli,所以你需要首先卸载它,再重新安装。
来源:
https://www.srcmini02.com/1849.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_42383.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57