linux 烧录工具,烧录工具能否支持 Linux ?

在使用VSCode加载HPM配置文件时,遇到了配置参数shellPath被错误设置为'underflied/system32/cmd.exe'的问题,这应该指向Linux用户的shell,如/bin/bash等。在尝试构建时,出现了找不到模块的错误。错误详细信息显示模块未找到,可能原因是配置文件的不正确读取导致构建失败。建议检查配置文件并确保其适配Linux环境。
摘要由CSDN通过智能技术生成

现在的问题是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: {}

}

(部分路径内的部分字符涉及到个人隐私已隐藏)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值