一、windows下 找到node的安装目录 npm config get prefix 修改npm配置 npm config set prefix "nodeJs的安装目录" 重新安装需要的全局包 npm install "包名" -g