0

I am getting the following error when installing typescript on my windows machine.

PS

D:\TypeScript\Ex_Files_TypeScript_EssT\Ex_Files_TypeScript_EssT\Exercise_Files\Chp_01\01_04> npm install -g typescript
npm ERR! Unexpected end of JSON input while parsing near '...0","@typescript-eslin'

Can somebody help me out on this?

1 Answer 1

2

The following command solved my problem

npm cache clean --force

npm install -g typescript

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

Comments

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.