Error: execute install task failed, component ohpm.zip.
Error: execute ‘ohpm install’ failed.
execute install task, component ohpm.zip.
Unzipping /Applications/DevEco-Studio.app/Contents/tools/ohpm.zip
Initializing ohpm
npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://repo.huaweicloud.com/repository/npm/has-flag reason: Invalid response body while trying to fetch https://repo.huaweicloud.com/repository/npm/has-flag: EACCES: permission denied, mkdir '/Applications/MxSrvs/cache/nodejs/_cacache/index-v5/2a/06'
npm ERR! A complete log of this run can be found in:
npm ERR! /Applications/MxSrvs/cache/nodejs/_logs/2024-02-01T04_15_13_522Z-debug-0.log
Error: execute install task failed, component ohpm.zip.
Error: execute 'ohpm install' failed.
【解决方法】
【参考博文】http://t.csdnimg.cn/kOaM0
【解决】
- 删掉MxSrvs