Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
567 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...