npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

 

 

解决方法:

修改npm包所安装目录的权限:sudo chown -R $USER /usr/local   然后输入密码就可以了

posted @ 2019-05-06 23:00  jimmy.wang123  阅读(560)  评论(0编辑  收藏  举报