npm 安装Vue环境时报错

使用npm方法安装Vue环境,在安装cnpm时出现了问题:

在命令行输入:npm install -g cnpm --registry=http://registry.npm.taobao.org,出现了警告,如图:

解决方法如下:

在命令行输入:

    npm cache clean -f

    npm install npm -g

原文地址:https://www.cnblogs.com/miaowu1314/p/10454952.html