【报错处理】npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/yarn 一、报错现象 二、报错原因 权限不够 三、解决方法 加上sudo sudo npm install -g yarn