UnhandledPromiseRejectionWarning 错误解决
报错内容(node:2565) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EACCES: permission denied, unlink '/home/fenggese/workspace/express/code-snippet-web/.nuxt/App.v
·
报错内容
(node:2565) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EACCES: permission denied, unlink '/home/fenggese/workspace/express/code-snippet-web/.nuxt/App.vue'
原因
因为当前用户fenggese对.nuxt目录没有操作权限。所以无法编译项目。
解决方法
切换到root用户
// 1. 切换到root用户
su root
// 2. 修改目录以及目录下文件的权限
chown -R fenggese:fenggese .nuxt/
更多推荐
已为社区贡献1条内容
所有评论(0)