0

I am trying to install vue3 js. but unfortunately I am getting an error please help me how can i resolve ? thanks.

developer@developer-ThinkCentre-M93p:~$ npm install -g @vue/cli

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! Unexpected end of JSON input while parsing near '...8HIwwH2SLKEsPpZqiiIW8'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/developer/.npm/_logs/2021-01-27T02_11_15_446Z-debug.log
7
  • Have you tired npm install vue Commented Jan 26, 2021 at 16:30
  • yes I have installed this please check ibb.co/gZY81bL Commented Jan 26, 2021 at 16:39
  • you're saying that you're trying to install vue 3, but your image shows vue 2.6 Commented Jan 26, 2021 at 17:34
  • what version of node are you on, do node -v if it doesnt show there is either something wrong with node or you dont have it installed Commented Jan 26, 2021 at 17:54
  • i have node version v10.19.0 Commented Jan 26, 2021 at 17:55

1 Answer 1

1

install vue-cli if you haven't yet

sudo npm install -g @vue/cli

OR update to latest

sudo npm update -g @vue/cli

then create a new project with

vue create hello-world

then select vue 3 project

enter image description here


Including comment from @Eazash:

You need to verify your npm cache with npm cache verify and then try installing vue-cli. If that doesn't work, try clearing the cache altogether with npm cache clean --force

could also try with sudo privileges: sudo npm cache verify and sudo npm cache clean --force

Sign up to request clarification or add additional context in comments.

4 Comments

again i have used these commands but unfortunately getting an error ibb.co/zF14P17
try sudo npm install -g @vue/cli
You need to verify your npm cache with npm cache verify and then try installing vue-cli. If that doesn't work, try clearing the cache altogether with npm cache clean --force.
sir, I have cleared cache and then install vue js but facing like this ibb.co/bJL7Hcp

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.