用户工具

站点工具


差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

技术:error怎么办 [2020/06/16 06:20] (当前版本)
superuser 创建
行 1: 行 1:
 +====== Error: EACCES: permission denied 怎么办 ======
  
 +change your file permissions .. like this
 +
 +first check who owns the directory
 +
 +ls -la /​usr/​local/​lib/​node_modules
 +it is denying access because the node_module folder is owned by root
 +
 +drwxr-xr-x ​  3 root    wheel  102 Jun 24 23:24 node_modules
 +so this needs to be changed by changing root to your user but first run command below to check your current user How do I get the name of the active user via the command line in OS X?
 +
 +id -un
 +OR
 +
 +whoami
 +
 +then change owner
 +
 +sudo chown -R [owner]:​[owner] /​usr/​local/​lib/​node_modules
 +OR
 +
 +sudo chown -R ownerName: /​usr/​local/​lib/​node_modules
 +OR
 +
 +sudo chown -R $USER /​usr/​local/​lib/​node_modules
 +
 +https://​stackoverflow.com/​questions/​48910876/​error-eacces-permission-denied-access-usr-local-lib-node-modules-react/​55628400
/opt/bitnami/dokuwiki/data/pages/技术/error怎么办.txt · 最后更改: 2020/06/16 06:20 由 superuser