标题: 4.1版本 创建新项目时 ohpm install 出错 [打印本页] 作者: bananaCaptain 时间: 2024-5-30 14:16 标题: 4.1版本 创建新项目时 ohpm install 出错 [md]"\"C:\Program Files\Huawei\DevEco Studio\tools\ohpm\bin\ohpm.bat\"" install --all --registry https://ohpm.openharmony.cn/ohpm/ --strict_ssl true
ohpm INFO: MetaDataFetcher fetching meta info of package '@ohos/hypium' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: MetaDataFetcher fetching meta info of package '@ohos/hamock' from https://ohpm.openharmony.cn/ohpm/
ohpm INFO: fetch meta info of package '@ohos/hypium' success https://ohpm.openharmony.cn/ohpm/@ohos/hypium
ohpm INFO: fetch meta info of package '@ohos/hamock' success https://ohpm.openharmony.cn/ohpm/@ohos/hamock
ohpm INFO: delete useless empty folder succeed: "D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\@ohos"
ohpm ERROR: ELINK link D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\@ohos\hypium to D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\.ohpm\@ohos+hypium@1.0.16\oh_modules\@ohos\hypium failed. error: Error while trying to symlink "D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\.ohpm\@ohos+hypium@1.0.16\oh_modules\@ohos\hypium\" to "D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\@ohos\hypium". The error happened while trying to create the parent directory for the symlink target, details: The "D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules\@ohos\hypium" is exist while symlink..
DevEco 4.1,ohpm 1.60,创建应用进入应用就报错了,知道什么原因不?感谢
[/md]作者: 深开鸿_王石 时间: 2024-5-30 15:20
The error happened while trying to create the parent directory for the symlink target, details: The "D:\WorkSpace\DevEcoStudioProjects\TestMap\oh_modules@ohos\hypium" is exist while symlink,这个说法就是这个路径里有东西啊,建立软链接不对了,所以可以删掉看看