依次输入:
npm install --registry=https://registry.npm.taobao.org --loglevel=silly
npm cache clean --force
再执行报错之前输入的语句
npm install -g webpack
依次输入:
npm install --registry=https://registry.npm.taobao.org --loglevel=silly
npm cache clean --force
再执行报错之前输入的语句
npm install -g webpack