NPM安装过程中的一些问题与解决

1. 安装 vue-cli3后提示 : Package require os(darwin) not compatible with your platform(win32).

  上面是因为安装 npm install -g @vue/cli 的提示环境不符合

  解决方案:执行  cnpm rebuild node-sass        cnpm install  后再安装

2.安装vue-cli3流程
npm uninstall -g @vue/cli 卸载
 npm install -g @vue/cli@3.* 安装指定的版本
 vue -V 查看当前的版本
原文地址:https://www.cnblogs.com/bing2017/p/12012873.html