• Lv0
    粉丝0

积分2 / 贡献0

提问2答案被采纳0文章0

OpenHarmony 4.1 release rk3568 hb build编译错误,提示FileNotFoundError: [Errno 2] No such file or directory: 'npm'

听风胖耗子 显示全部楼层 发表于 5 天前

【问题描述】

  1. 【问题描述】 在ubuntu20.04上,OpenHarmony 4.1 release rk3568 hb build方式编译构建失败 失败日志如下:

    [43653/73294] ACTION //third_party/typescript:build_typescript(//build/toolchain/ohos:ohos_clang_arm) FAILED: obj/third_party/typescript/build_typescript.stamp /usr/bin/env ../../third_party/typescript/compile_typescript.py /home/lp-machine/openharmony/OpenHarmony-v4.1-Release/OpenHarmony/third_party/typescript/ Traceback (most recent call last): File "../../third_party/typescript/compile_typescript.py", line 43, in <module> main(sys.argv[1:]) File "../../third_party/typescript/compile_typescript.py", line 39, in main run_pack(source_path) File "../../third_party/typescript/compile_typescript.py", line 34, in run_pack run_cmd(["npm", "pack"], execution_path) File "../../third_party/typescript/compile_typescript.py", line 23, in run_cmd proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, File "/usr/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'npm'

    哪位大佬能帮忙分析一下原因,谢谢!!!

【运行环境】

硬件:rk3568 ROM版本:openharmony 4.1  release DevEvoStudio版本:DevEco Studio 4 release SDK版本: API 11

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论1

hyacinth养花人

沙发 发表于 5 天前
npm装了么,重装下试试?

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部