You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行vue create命令遇JSON解析错误,npm缓存清理无效求助

执行vue create vue-hello时出现JSON解析错误,请求帮助

我在执行vue create vue-hello命令创建Vue项目时遇到了报错,具体错误信息如下:

npm ERR! Unexpected end of JSON input while parsing near '...kwrap":false,"publish'
npm ERR! A complete log of this run can be found in: npm ERR! /Users/hope111/.npm/_logs/2018-05-27T03_02_46_740Z-debug.log
ERROR command failed: npm install --loglevel error --registry=https://registry.npm.taobao.org --disturl=https://npm.taobao.org/dist

错误截图:
Vue创建项目错误截图

我已经尝试过执行npm cache clean --force命令清理npm缓存,但问题依然没有解决,希望能得到各位的技术支持,谢谢!

内容的提问来源于stack exchange,提问作者zhengpq

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 07:00:41