When i run 'npm install' command on my mac machine, am getting up a below error - vue.js

When i run 'npm install' command on my mac machine, am getting up a below error. help me to solve this:
npm ERR! Unexpected end of JSON input while parsing near '...^1.7.0","sinon":"^4.0'
npm install

Related

I'm unable to install npm and getting a npm installation error. how can i slove this problem?

NPM and truffle Error in CMD
I am unable to install npm using cmd.

Installation of npm lite-server gives an error

While following the Petshop tutorial, the final step requires the installation of lite-server from npm for the project to run on my browser (Firefox).
I tried the following command for installation, with PowerShell in administrator mode:
npm i lite-server -g
This gave me the following error message:
npm ERR! Unexpected end of JSON input while parsing near '...61d4d38b3260af8ae4e7"'
npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\Ubaba\AppData\Roaming\npm-cache_logs\2020-04-09T10_10_51_353Z-debug.log
I tried all the solutions mentioned on this page, but none of them seem to be working.
It seems an issue with the NPM mirror
Try this : npm cache clean --force
and after retry install Lite-server.
regards

Npm install error though having correct package.json

I m trying todo npm install on windows machine.
I m getting following error
npm ERR! Unexpected end of JSON input while parsing near ‘...l”: “paul#oshannessy’

Error while installing vue CLI: npm ERR! Unexpected end of JSON input while parsing near '...ulp-rename":"0.0.33",'

I had an older version of vue CLI and i want to upgrade to CLI 3, so first what I did is unistall the previous version:
npm uninstall vue-cli -g
Then tried to install:
npm install -g #vue/cli
I got the following error:
npm ERR! Unexpected end of JSON input while parsing near '...ulp-rename":"0.0.33",'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\31089\AppData\Roaming\npm-cache\_logs\2020-02-02T11_48_31_187Z-debug.log
The complete log information can be found here
My node version: v12.14.0
My npm version: 6.13.4
And I tried
npm cache clean --force
but didn't work.
I figured out, if you run command prompt window as an administrator, then first do
npm cache clean --force
then can install successfully.

".staging" file removal error on npm install

When running an
npm install
command in the terminal I get the error
npm ERR! code EINVAL
npm ERR! errno -22
npm ERR! syscall rmdir '../node_modules/.staging'
The error above appears when I try to run this command on my Mac which is pointing to a directory on the C: drive of my Windows parallels machine instance.
If I run the npm install on Windows in this directory I do not get the error.
Any idea how to fix this?