HarmonyOS 鸿蒙Next中M1上面项目运行时报错: EPERM EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64
HarmonyOS 鸿蒙Next中M1上面项目运行时报错: EPERM EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64
/Users/xxx/.hvigor/wrapper/tools/node_modules/.bin/pnpm install --reporter=append-only --color
Progress: resolved 1, reused 0, downloaded 0, added 0
WARN deprecated @babel/plugin-proposal-class-properties@7.8.3: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
Progress: resolved 120, reused 3, downloaded 0, added 0
WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
Packages: +325
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 325, reused 320, downloaded 0, added 0
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/xxx/.hvigor/caches/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 325, reused 325, downloaded 0, added 304
EPERM EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64e1db23c969/workspace/node_modules/.pnpm/jsesc@2.5.2/node_modules/jsesc/bin/jsesc'
pnpm: EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64e1db23c969/workspace/node_modules/.pnpm/jsesc@2.5.2/node_modules/jsesc/bin/jsesc'
Process finished with exit code 1
项目运行时直接报错了, 这个怎么回事?
更多关于HarmonyOS 鸿蒙Next中M1上面项目运行时报错: EPERM EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64的实战教程也可以访问 https://www.itying.com/category-93-b0.html
您好,可以通过在线提单进一步解决:https://developer.huawei.com/consumer/cn/support/feedback/#/
更多关于HarmonyOS 鸿蒙Next中M1上面项目运行时报错: EPERM EPERM: operation not permitted, chmod '/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
这个错误通常是由于文件权限问题导致的。在HarmonyOS鸿蒙Next中,M1设备上运行项目时,如果遇到EPERM: operation not permitted, chmod
错误,可以尝试以下解决方法:
-
检查文件权限:确保
/Users/xxx/.hvigor/project_caches/60ad19e9e094cc7f11df64
目录及其子目录的权限设置正确,当前用户有读写权限。 -
使用管理员权限:尝试使用
sudo
命令以管理员权限运行项目,例如:sudo npm run build
。 -
清理缓存:删除
.hvigor
目录下的缓存文件,重新构建项目。 -
检查系统设置:确保没有系统级别的限制,如SIP(System Integrity Protection)阻止了文件操作。
如果问题仍然存在,建议检查项目配置或联系技术支持。