Fetch the repository succeeded.
Linux 下安装了 vscode 插件,安装了 hpm 发现不支持 Linux
qiushao@470p:/media/qiushao/source-code/projects/opensource/openharmony$ hpm --version
Cannot find the shell with path 'undefined\System32\cmd.exe'.
Create a hpm-cli configuration file, or change file '/home/min/.hpm/hpmrc' to be a hpm-cli configuration file.
其实对于系统开发者来说 Linux 开发环境更加友好。比垃圾 Windows 方便多了。
+1 那个windows
电脑完全没有"必须"的必要啊.
从windows
复制代码到linux
编译,再把结果拷回来烧到板子上,来来回回的多费劲...
本来linux
下就有vscode
,直接linux
下写代码,然后编辑编译烧录,不就简单多了吗.
现在的问题是vscode在加载hpm的配置文件的时候 会修改配置文件的参数项shellPath="underflied/system32/cmd.exe"
这个地方应该是读取Linux下当前用户的shell界面的 比如说/bin/bash,/bin/fish,/bin/zsh之类的
尝试构建的时候输出错误
Building: helloworld
internal/modules/cjs/loader.js:968
throw err;
^
Error: Cannot find module '/media/***/***/Github/C/***/Hello-World/%BUILD_SCRIPT%'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Build error: Worker stopped with exit code 1
Check error details by "/home/***/.hpm/log/debug/debug.2020-09-13-04-35-23.log"
上述错误提及到的log如下
[2020-09-13T04:35:23.929] [DEBUG] default - {
error: 'Worker stopped with exit code 1',
platform: 'linux',
node: 'v12.18.3',
hpm: '1.0.0',
argv: [ '/usr/bin/node', '/usr/bin/hpm', 'run', 'build' ],
env: {}
}
(部分路径内的部分字符涉及到个人隐私已隐藏)
多谢大家的关注。
基于最新架构的DevEco Device Tool 预计将于2021年1月份发布,预期将会支持Linux操作平台的一键编译、烧录
等,敬请期待。
Sign in to comment