F:creatGit>npm install webpack -g npm ERR! Unexpected end of JSON input while parsing near '...rimraf-2.0.0.tgz"},"e' npm ERR! A complete log of this run can be found in: npm ERR! C:UsersAdministratorAppDataRoaming pm-cache\_logs2018-06-01T09_34_35_682Z-debug.log F:creatGit>npm cache clean --force npm WARN using --force I sure hope you know what you are doing. F:creatGit>npm install webpack -g C:UsersAdministratorAppDataRoaming pmwebpack -> C:UsersAdministratorAppDataRoaming pm ode_moduleswebpackinwebpack.js
执行
npm cache clean --force
然后再吃初始化