现在的问题是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: {}
}
(部分路径内的部分字符涉及到个人隐私已隐藏)