permission denied, access '/usr/local/lib/node_modules'

  1. 查看该文件权限
ls -la /usr/local/lib/node_modules

drwxr-xr-x 3 root wheel 102 Jun 24 23:24 node_modules

  1. id -unwhoami 确定当前用户
  2. sudo chown -R ownerName: /usr/local/lib/node_modules 修改文件权限

https://stackoverflow.com/questions/48910876/error-eacces-permission-denied-access-usr-local-lib-node-modules

你可能感兴趣的:(permission denied, access '/usr/local/lib/node_modules')