NPM Install Error:Unexpected end of JSON input while parsing near '…nt-webpack-plugin“:”0'

前端 未结 30 2307
孤街浪徒
孤街浪徒 2020-11-22 10:20

When Creating a new Angular 5 project:

node version: 8.9.2

npm version: 5.5.1

My Command is

npm install -g @angular/cli
30条回答
  •  眼角桃花
    2020-11-22 11:01

    Npm uses Cache for downloading new packages for you. You need to clear your npm cache. use following command to clean :

    npm cache clean --force
    

    then normally use your npm install command e.g.

    npm install -g @angular/cli
    

提交回复
热议问题