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

前端 未结 30 2269
孤街浪徒
孤街浪徒 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:02

    delete npm and npm-cache folders in C:\Users\admin\AppData\Roaming\ (windows) then execute cmd

    npm cache clear --force

    npm cache verify

    update npm to latest version

    npm i -g npm

    then create your project 1)Angular

    npm i -g @angular/cli@latest

    ng new HelloWorld

    2)React

    npm i -g create-react-app

    create-react-app react-app

提交回复
热议问题