Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
566 views
in Technique[技术] by (71.8m points)

vuejs3 - i am trying to create vue3 project but getting error

I am trying to create a vue3 project but unfortunately getting an error. please help me how can I resolve that thanks.

developer@developer-ThinkCentre-M93p:~$ vue create my-app

Vue CLI v4.5.11

? Please pick a preset: Default (Vue 3 Preview) ([Vue 3] babel, eslint)

Vue CLI v4.5.11

? Creating project in /home/developer/my-app.

?? Initializing git repository... ?? Installing CLI plugins.

This might take a while...

npm ERR! Unexpected end of JSON input while parsing near '...G86w5sVNCz3K/igO52X4z'

npm ERR! A complete log of this run can be found in: npm ERR! /home/developer/.npm/_logs/2021-01-27T04_43_44_270Z-debug.log ERROR command failed: npm install --loglevel error

question from:https://stackoverflow.com/questions/65907587/i-am-trying-to-create-vue3-project-but-getting-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

likely a cache issue

Some things to try:

  • npm i npm@latest -g
  • sudo npm i npm@latest -g
  • npm cache clean --force
  • sudo npm cache clean --force

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...