【报错处理】npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/yarn

【报错处理】npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/yarn

二、报错原因

权限不够

三、解决方法

加上sudo

sudo  npm install -g yarn