gpt4 book ai didi

node.js - 使用时出错 'vue create my-project' : Unexpected end of JSON input while parsing

转载 作者:太空宇宙 更新时间:2023-11-04 01:48:33 29 4
gpt4 key购买 nike

命令:

vue create vue-hello

错误:

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

这是错误的图片:

picture of the error

我使用了npm cache clean --force,但它不起作用

最佳答案

  1. npm 缓存清理 --force
  2. npm 更新
  3. npm install -g @vue/cli

关于node.js - 使用时出错 'vue create my-project' : Unexpected end of JSON input while parsing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50548876/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com