纱线错误“EACCESS:权限被拒绝,扫描目录'/home/ubuntu/.config/yarn/link'"; [英] yarn error "EACCESS: permission denied, scandir '/home/ubuntu/.config/yarn/link'"

查看:81
本文介绍了纱线错误“EACCESS:权限被拒绝,扫描目录'/home/ubuntu/.config/yarn/link'";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在 Ubuntu 16.04 服务器上尝试使用纱线时.

Whenever I try something with yarn on Ubuntu 16.04 server.

它给出了一个错误.

我目前使用的是 nodejs v8.10.0

I am currently using nodejs v8.10.0

yarn install v1.5.1
error An unexpected error occurred: "EACCES: permission denied, scandir '/home/ubuntu/.config/yarn/link'".
info If you think this is a bug, please open a bug report with the information provided in "/home/ubuntu/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

有人知道为什么会这样吗?

Anyone know why this is happening?

推荐答案

这可能是一个 unix 权限相关的问题.在开发者的 github 页面上发布了一个解决方案.尝试运行以下命令

It's likely a unix permission related problem. There is a solution posted on the dev's github page. Try to run the following command

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config

参考:EACCES:权限被拒绝 .config/configstore/bower-github.json #2262

这篇关于纱线错误“EACCESS:权限被拒绝,扫描目录'/home/ubuntu/.config/yarn/link'";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆